FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Store the options sent through the CLI. More...
#include <OjoState.hpp>
Public Member Functions | |
void | setUserId (const int) |
Set the user id. More... | |
void | setGroupId (const int) |
Set the group id. More... | |
bool | isVerbosityDebug () const |
Check if verbosity is set. More... | |
bool | doJsonOutput () const |
Check if JSON output is required. More... | |
bool | doignoreFilesWithMimeType () const |
Check ignore files with particular mimetype is required. More... | |
int | getUserId () const |
Get the user running the agent. More... | |
int | getGroupId () const |
Get the group running the agent. More... | |
OjoCliOptions (int verbosity, bool json, bool ignoreFilesWithMimeType) | |
Constructor for OjoCliOptions. More... | |
OjoCliOptions () | |
Default constructor for OjoCliOptions. | |
Private Attributes | |
int | verbosity |
bool | json |
bool | ignoreFilesWithMimeType |
int | userId |
int | groupId |
Store the options sent through the CLI.
Definition at line 23 of file OjoState.hpp.
OjoCliOptions::OjoCliOptions | ( | int | verbosity, |
bool | json, | ||
bool | ignoreFilesWithMimeType | ||
) |
Constructor for OjoCliOptions.
verbosity | Verbosity set by CLI |
json | True to get output in JSON format |
ignoreFilesWithMimeType | To ignore files with particular mimetype |
Definition at line 52 of file OjoState.cc.
bool OjoCliOptions::doignoreFilesWithMimeType | ( | ) | const |
Check ignore files with particular mimetype is required.
Definition at line 98 of file OjoState.cc.
bool OjoCliOptions::doJsonOutput | ( | ) | const |
Check if JSON output is required.
Definition at line 89 of file OjoState.cc.
int OjoCliOptions::getGroupId | ( | ) | const |
Get the group running the agent.
Definition at line 134 of file OjoState.cc.
int OjoCliOptions::getUserId | ( | ) | const |
Get the user running the agent.
Definition at line 125 of file OjoState.cc.
bool OjoCliOptions::isVerbosityDebug | ( | ) | const |
Check if verbosity is set.
Definition at line 80 of file OjoState.cc.
void OjoCliOptions::setGroupId | ( | const int | groupId | ) |
void OjoCliOptions::setUserId | ( | const int | userId | ) |
|
private |
Group running the agent
Definition at line 30 of file OjoState.hpp.
|
private |
Ignore files with particular mimetype
Definition at line 28 of file OjoState.hpp.
|
private |
Whether to generate JSON output
Definition at line 27 of file OjoState.hpp.
|
private |
User running the agent
Definition at line 29 of file OjoState.hpp.
|
private |
The verbosity level
Definition at line 26 of file OjoState.hpp.