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

Store the state of the agent. More...

#include <OjoState.hpp>

Collaboration diagram for OjoState:
Collaboration graph

Public Member Functions

 OjoState (const int agentId, const OjoCliOptions &cliOptions)
 
void setAgentId (const int agentId)
 
int getAgentId () const
 
const OjoCliOptionsgetCliOptions () const
 Get the OjoCliOptions set by user. More...
 
const OjoAgentgetOjoAgent () const
 

Private Attributes

int agentId
 
const OjoCliOptions cliOptions
 
const OjoAgent ojoAgent
 

Detailed Description

Store the state of the agent.

Definition at line 50 of file OjoState.hpp.

Constructor & Destructor Documentation

◆ OjoState()

OjoState::OjoState ( const int  agentId,
const OjoCliOptions cliOptions 
)

Constructor for State

Parameters
agentIdAgent ID
cliOptionsCLI options passed

Definition at line 14 of file OjoState.cc.

Member Function Documentation

◆ getAgentId()

int OjoState::getAgentId ( ) const

Get the agent id

Returns
Agent id

Definition at line 32 of file OjoState.cc.

◆ getCliOptions()

const OjoCliOptions & OjoState::getCliOptions ( ) const

Get the OjoCliOptions set by user.

Returns
The OjoCliOptions

Definition at line 71 of file OjoState.cc.

◆ getOjoAgent()

const OjoAgent & OjoState::getOjoAgent ( ) const

Get the OjoAgent reference

Returns
OjoAgent reference

Definition at line 41 of file OjoState.cc.

◆ setAgentId()

void OjoState::setAgentId ( const int  agentId)

Get the agent id

Returns
Agent id

Definition at line 23 of file OjoState.cc.

Member Data Documentation

◆ agentId

int OjoState::agentId
private

Agent id

Definition at line 61 of file OjoState.hpp.

◆ cliOptions

const OjoCliOptions OjoState::cliOptions
private

CLI options passed

Definition at line 62 of file OjoState.hpp.

◆ ojoAgent

const OjoAgent OjoState::ojoAgent
private

Ojo agent object

Definition at line 63 of file OjoState.hpp.


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