![]() |
FOSSology
4.6.0-rc1
Open Source License Compliance by Open Source Software
|
Store the options sent through the CLI. More...
#include <copyrightState.hpp>

Public Member Functions | |
| bool | isVerbosityDebug () const |
| Check if verbosity is set. More... | |
| unsigned int | getOptType () const |
| Get the opt type set by CliOptions. More... | |
| bool | doJsonOutput () const |
| Check if JSON output is required. More... | |
| bool | doignoreFilesWithMimeType () const |
| Check to ignore files with particular mimetype. More... | |
| void | addScanner (scanner *regexDesc) |
| Add scanner to CliOptions. More... | |
| std::list< unptr::shared_ptr< scanner > > | extractScanners () |
| Get scanner s set by CliOptions. More... | |
| CliOptions (int verbosity, unsigned int type, bool json, bool ignoreFilesWithMimeType) | |
| Constructor for CliOptions. More... | |
| CliOptions () | |
| Default constructor for CliOptions. | |
Private Attributes | |
| int | verbosity |
| unsigned int | optType |
| bool | json |
| bool | ignoreFilesWithMimeType |
| std::list< unptr::shared_ptr< scanner > > | cliScanners |
Store the options sent through the CLI.
Definition at line 23 of file copyrightState.hpp.
| CliOptions::CliOptions | ( | int | verbosity, |
| unsigned int | type, | ||
| bool | json, | ||
| bool | ignoreFilesWithMimeType | ||
| ) |
Constructor for CliOptions.
| verbosity | Verbosity set by CLI |
| type | Type set by CLI |
| json | True to get output in JSON format |
| ignoreFilesWithMimeType | True to ignore files with particular mimetype |
Definition at line 47 of file copyrightState.cc.
| void CliOptions::addScanner | ( | scanner * | sc | ) |
Add scanner to CliOptions.
| sc | Scanner to be added |
Definition at line 107 of file copyrightState.cc.
| bool CliOptions::doignoreFilesWithMimeType | ( | ) | const |
Check to ignore files with particular mimetype.
Definition at line 125 of file copyrightState.cc.
| bool CliOptions::doJsonOutput | ( | ) | const |
Check if JSON output is required.
Definition at line 116 of file copyrightState.cc.
| std::list< unptr::shared_ptr< scanner > > CliOptions::extractScanners | ( | ) |
Get scanner s set by CliOptions.
Definition at line 89 of file copyrightState.cc.
| unsigned int CliOptions::getOptType | ( | ) | const |
Get the opt type set by CliOptions.
Definition at line 71 of file copyrightState.cc.
| bool CliOptions::isVerbosityDebug | ( | ) | const |
Check if verbosity is set.
Definition at line 98 of file copyrightState.cc.
|
private |
List of available scanners
Definition at line 30 of file copyrightState.hpp.
|
private |
Whether to ignore files with particular mimetype
Definition at line 29 of file copyrightState.hpp.
|
private |
Whether to generate JSON output
Definition at line 28 of file copyrightState.hpp.
|
private |
Scan type (2 => url, 4 => email, 8 => author, 16 => ecc)
Definition at line 27 of file copyrightState.hpp.
|
private |
The verbosity level
Definition at line 26 of file copyrightState.hpp.