FOSSology  3.2.0rc1
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 54 of file OjoState.hpp.

Constructor & Destructor Documentation

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

Constructor for State

Parameters
agentIdAgent ID
cliOptionsCLI options passed

Definition at line 25 of file OjoState.cc.

Member Function Documentation

int OjoState::getAgentId ( ) const

Get the agent id

Returns
Agent id

Definition at line 43 of file OjoState.cc.

const OjoCliOptions & OjoState::getCliOptions ( ) const

Get the OjoCliOptions set by user.

Returns
The OjoCliOptions

Definition at line 80 of file OjoState.cc.

const OjoAgent & OjoState::getOjoAgent ( ) const

Get the OjoAgent reference

Returns
OjoAgent reference

Definition at line 52 of file OjoState.cc.

void OjoState::setAgentId ( const int  agentId)

Get the agent id

Returns
Agent id

Definition at line 34 of file OjoState.cc.

Member Data Documentation

int OjoState::agentId
private

Agent id

Definition at line 65 of file OjoState.hpp.

const OjoCliOptions OjoState::cliOptions
private

CLI options passed

Definition at line 66 of file OjoState.hpp.

const OjoAgent OjoState::ojoAgent
private

Ojo agent object

Definition at line 67 of file OjoState.hpp.


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