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

Holds information about state of one agent. More...

#include <copyrightState.hpp>

Collaboration diagram for CopyrightState:
Collaboration graph

Public Member Functions

 CopyrightState (CliOptions &&cliOptions)
 Constructor to initialize state. More...
 
int getAgentId () const
 
void addScanner (scanner *scanner)
 Add scanner to state. More...
 
const std::list< unptr::shared_ptr< scanner > > & getScanners () const
 Get available scanner s. More...
 
const CliOptionsgetCliOptions () const
 Get the CliOptions set by user. More...
 

Private Attributes

const CliOptions cliOptions
 
std::list< unptr::shared_ptr< scanner > > scanners
 

Detailed Description

Holds information about state of one agent.

Definition at line 51 of file copyrightState.hpp.

Constructor & Destructor Documentation

◆ CopyrightState()

CopyrightState::CopyrightState ( CliOptions &&  cliOptions)

Constructor to initialize state.

Parameters
cliOptionsOptions sent by CLI

Definition at line 15 of file copyrightState.cc.

Member Function Documentation

◆ addScanner()

void CopyrightState::addScanner ( scanner sc)

Add scanner to state.

Parameters
scScanner to be added

Definition at line 25 of file copyrightState.cc.

◆ getCliOptions()

const CliOptions & CopyrightState::getCliOptions ( ) const

Get the CliOptions set by user.

Returns
The CliOptions

Definition at line 80 of file copyrightState.cc.

◆ getScanners()

const std::list< unptr::shared_ptr< scanner > > & CopyrightState::getScanners ( ) const

Get available scanner s.

Returns
List of available scanners

Definition at line 35 of file copyrightState.cc.

Member Data Documentation

◆ cliOptions

const CliOptions CopyrightState::cliOptions
private

CliOptions passed

Definition at line 66 of file copyrightState.hpp.

◆ scanners

std::list<unptr::shared_ptr<scanner> > CopyrightState::scanners
private

List of available scanners

Definition at line 67 of file copyrightState.hpp.


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