19 #include "copyrightState.hpp" 20 #include "identity.hpp" 27 cliOptions(cliOptions),
28 scanners(cliOptions.extractScanners())
39 scanners.push_back(unptr::shared_ptr<scanner>(sc));
62 ignoreFilesWithMimeType(ignoreFilesWithMimeType),
120 cliScanners.push_back(unptr::shared_ptr<scanner>(sc));
CopyrightState(CliOptions &&cliOptions)
Constructor to initialize state.
CliOptions()
Default constructor for CliOptions.
std::list< unptr::shared_ptr< scanner > > extractScanners()
Get scanner s set by CliOptions.
const std::list< unptr::shared_ptr< scanner > > & getScanners() const
Get available scanner s.
bool doignoreFilesWithMimeType() const
Check to ignore files with particular mimetype.
bool doJsonOutput() const
Check if JSON output is required.
std::list< unptr::shared_ptr< scanner > > scanners
Abstract class to provide interface to scanners.
void addScanner(scanner *regexDesc)
Add scanner to CliOptions.
void addScanner(scanner *scanner)
Add scanner to state.
bool isVerbosityDebug() const
Check if verbosity is set.
const CliOptions & getCliOptions() const
Get the CliOptions set by user.
std::list< unptr::shared_ptr< scanner > > cliScanners
bool ignoreFilesWithMimeType
Store the options sent through the CLI.
unsigned int getOptType() const
Get the opt type set by CliOptions.