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