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

#include <scancode_state.hpp>

Collaboration diagram for State:
Collaboration graph

Public Member Functions

 State (int agentId)
 constructor for state class More...
 
int getAgentId () const
 getter function for agent Id More...
 
 State (int agentId)
 
void setCliOptions (string cliOptions)
 setter for command line interface options More...
 
int getAgentId () const
 
string getCliOptions () const
 getter function for cliOptions More...
 

Private Attributes

int agentId
 
string cliOptions
 

Detailed Description

class to get agent Id and CliOptions

Examples
/home/runner/work/fossology/fossology/src/www/ui/ui-picker.php.

Definition at line 15 of file state.hpp.

Constructor & Destructor Documentation

◆ State()

State::State ( int  agentId)

constructor for state class

Parameters
agentIdagent_pk in the agent table

Definition at line 9 of file state.cc.

Member Function Documentation

◆ getAgentId()

int State::getAgentId ( ) const

getter function for agent Id

Returns
integer agentId(agent_pk in the agent table)

Definition at line 14 of file state.cc.

◆ getCliOptions()

string State::getCliOptions ( ) const

getter function for cliOptions

Returns
string cliOptions command line options for scancode toolkit

Definition at line 26 of file scancode_state.cc.

◆ setCliOptions()

void State::setCliOptions ( string  cliOptions)

setter for command line interface options

Parameters
cliOptionscommand line options for scancode toolkit

Definition at line 33 of file scancode_state.cc.

Member Data Documentation

◆ agentId

int State::agentId
private

agent Id is agent_pk in the agent table

Definition at line 23 of file state.hpp.

◆ cliOptions

string State::cliOptions
private

cliOptions command line options for scancode toolkit

Definition at line 34 of file scancode_state.hpp.


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