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

Store the state of the agent. More...

#include <CompatibilityState.hpp>

Collaboration diagram for CompatibilityState:
Collaboration graph

Public Member Functions

 CompatibilityState (const int agentId, const CompatibilityCliOptions &cliOptions)
 
void setAgentId (const int agentId)
 
int getAgentId () const
 
const CompatibilityCliOptionsgetCliOptions () const
 Get the CompatibilityCliOptions set by user. More...
 
const CompatibilityAgentgetCompatibilityAgent () const
 

Private Attributes

int agentId
 
const CompatibilityCliOptions cliOptions
 
CompatibilityAgent compatibilityAgent
 

Detailed Description

Store the state of the agent.

Definition at line 41 of file CompatibilityState.hpp.

Constructor & Destructor Documentation

◆ CompatibilityState()

CompatibilityState::CompatibilityState ( const int  agentId,
const CompatibilityCliOptions cliOptions 
)

Constructor for State

Parameters
agentIdAgent ID
cliOptionsCLI options passed

Definition at line 14 of file CompatibilityState.cc.

Member Function Documentation

◆ getAgentId()

int CompatibilityState::getAgentId ( ) const

Get the agent id

Returns
Agent id

Definition at line 37 of file CompatibilityState.cc.

◆ getCliOptions()

const CompatibilityCliOptions & CompatibilityState::getCliOptions ( ) const

Get the CompatibilityCliOptions set by user.

Returns
The CompatibilityCliOptions

Definition at line 72 of file CompatibilityState.cc.

◆ getCompatibilityAgent()

const CompatibilityAgent & CompatibilityState::getCompatibilityAgent ( ) const

Get the CompatibilityAgent reference

Returns
CompatibilityAgent reference

Definition at line 46 of file CompatibilityState.cc.

◆ setAgentId()

void CompatibilityState::setAgentId ( const int  agentId)

Get the agent id

Returns
Agent id

Definition at line 27 of file CompatibilityState.cc.

Member Data Documentation

◆ agentId

int CompatibilityState::agentId
private

Agent id

Definition at line 53 of file CompatibilityState.hpp.

◆ cliOptions

const CompatibilityCliOptions CompatibilityState::cliOptions
private

CLI options passed

Definition at line 54 of file CompatibilityState.hpp.

◆ compatibilityAgent

CompatibilityAgent CompatibilityState::compatibilityAgent
private

Compatibility agent object

Definition at line 55 of file CompatibilityState.hpp.


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