FOSSology  4.4.0
Open Source License Compliance by Open Source Software
CompatibilityCliOptions Class Reference

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

#include <CompatibilityState.hpp>

Collaboration diagram for CompatibilityCliOptions:
Collaboration graph

Public Member Functions

bool isVerbosityDebug () const
 Check if verbosity is set. More...
 
bool doJsonOutput () const
 Check if JSON output is required. More...
 
 CompatibilityCliOptions (int verbosity, bool json)
 Constructor for CompatibilityCliOptions. More...
 
 CompatibilityCliOptions ()
 Default constructor for CompatibilityCliOptions.
 

Private Attributes

int verbosity
 
bool json
 

Detailed Description

Store the options sent through the CLI.

Definition at line 23 of file CompatibilityState.hpp.

Constructor & Destructor Documentation

◆ CompatibilityCliOptions()

CompatibilityCliOptions::CompatibilityCliOptions ( int  verbosity,
bool  json 
)

Constructor for CompatibilityCliOptions.

Parameters
verbosityVerbosity set by CLI
jsonTrue to get output in JSON format

Definition at line 56 of file CompatibilityState.cc.

Member Function Documentation

◆ doJsonOutput()

bool CompatibilityCliOptions::doJsonOutput ( ) const

Check if JSON output is required.

Returns
True if required, else false

Definition at line 90 of file CompatibilityState.cc.

◆ isVerbosityDebug()

bool CompatibilityCliOptions::isVerbosityDebug ( ) const

Check if verbosity is set.

Returns
True if set, else false

Definition at line 81 of file CompatibilityState.cc.

Member Data Documentation

◆ json

bool CompatibilityCliOptions::json
private

Whether to generate JSON output

Definition at line 27 of file CompatibilityState.hpp.

◆ verbosity

int CompatibilityCliOptions::verbosity
private

The verbosity level

Definition at line 26 of file CompatibilityState.hpp.


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