FSM Library - C++ version
Public Member Functions | List of all members
FsmPresentationLayer Class Reference

Public Member Functions

 FsmPresentationLayer ()
 
 FsmPresentationLayer (const std::vector< std::string > &in2String, const std::vector< std::string > &out2String, const std::vector< std::string > &state2String)
 
 FsmPresentationLayer (const std::string &inputs, const std::string &outputs, const std::string &states)
 
std::string getInId (const unsigned int id) const
 
std::string getOutId (const unsigned int id) const
 
std::string getStateId (const unsigned int id, const std::string &prefix) const
 
void dumpIn (std::ostream &out) const
 
void dumpOut (std::ostream &out) const
 
void dumpState (std::ostream &out) const
 
bool compare (std::shared_ptr< FsmPresentationLayer > otherPresentationLayer)
 

Constructor & Destructor Documentation

FsmPresentationLayer::FsmPresentationLayer ( )

Create a new presentation layer containing nothing

FsmPresentationLayer::FsmPresentationLayer ( const std::vector< std::string > &  in2String,
const std::vector< std::string > &  out2String,
const std::vector< std::string > &  state2String 
)

Create a new presentation layer

Parameters
in2StringA vector containing a string for each input
out2StringA vector containing a string for each output
state2StringA vector containing a string for each state
FsmPresentationLayer::FsmPresentationLayer ( const std::string &  inputs,
const std::string &  outputs,
const std::string &  states 
)

Create a new presentation layer

Parameters
inputsA file name, in which each line stand for one input
outputsA file name, in which each line stand for one output
statesA file name, in which each line stand for one state

Member Function Documentation

bool FsmPresentationLayer::compare ( std::shared_ptr< FsmPresentationLayer otherPresentationLayer)

Compare two presentation layer to check if they are the same or not

Parameters
otherPresentationLayerThe other presentation layer to be compared
void FsmPresentationLayer::dumpIn ( std::ostream &  out) const

Dump the current inputs into a standard output stream

Parameters
outThe standard output to use
void FsmPresentationLayer::dumpOut ( std::ostream &  out) const

Dump the current outputs into a standard output stream

Parameters
outThe standard output to use
void FsmPresentationLayer::dumpState ( std::ostream &  out) const

Dump the current states into a standard output stream

Parameters
outThe standard output to use
std::string FsmPresentationLayer::getInId ( const unsigned int  id) const

Getter for a particular input name

Parameters
idThe id of the input
Returns
The name if this input
std::string FsmPresentationLayer::getOutId ( const unsigned int  id) const

Getter for a particular output name

Parameters
idThe id of the output
Returns
The name if this output
std::string FsmPresentationLayer::getStateId ( const unsigned int  id,
const std::string &  prefix 
) const

Getter for a particular state name

Parameters
idThe id of the state
prefixIf the prefix is not empty, it will be added at he beginning of the name before returning it
Returns
The name if this state

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