FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
OjoCliOptions Class Reference

Store the options sent through the CLI. More...

#include <OjoState.hpp>

Collaboration diagram for OjoCliOptions:
Collaboration graph

Public Member Functions

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...
 
 OjoCliOptions (int verbosity, bool json, bool ignoreFilesWithMimeType)
 Constructor for OjoCliOptions. More...
 
 OjoCliOptions ()
 Default constructor for OjoCliOptions.
 

Private Attributes

int verbosity
 
bool json
 
bool ignoreFilesWithMimeType
 

Detailed Description

Store the options sent through the CLI.

Definition at line 34 of file OjoState.hpp.

Constructor & Destructor Documentation

OjoCliOptions::OjoCliOptions ( int  verbosity,
bool  json,
bool  ignoreFilesWithMimeType 
)

Constructor for OjoCliOptions.

Parameters
verbosityVerbosity set by CLI
jsonTrue to get output in JSON format
ignoreFilesWithMimeTypeTo ignore files with particular mimetype

Definition at line 63 of file OjoState.cc.

Member Function Documentation

bool OjoCliOptions::doignoreFilesWithMimeType ( ) const

Check ignore files with particular mimetype is required.

Returns
True if required, else false

Definition at line 107 of file OjoState.cc.

bool OjoCliOptions::doJsonOutput ( ) const

Check if JSON output is required.

Returns
True if required, else false

Definition at line 98 of file OjoState.cc.

bool OjoCliOptions::isVerbosityDebug ( ) const

Check if verbosity is set.

Returns
True if set, else false

Definition at line 89 of file OjoState.cc.

Member Data Documentation

bool OjoCliOptions::ignoreFilesWithMimeType
private

Ignore files with particular mimetype

Definition at line 39 of file OjoState.hpp.

bool OjoCliOptions::json
private

Whether to generate JSON output

Definition at line 38 of file OjoState.hpp.

int OjoCliOptions::verbosity
private

The verbosity level

Definition at line 37 of file OjoState.hpp.


The documentation for this class was generated from the following files: