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
-
in2String | A vector containing a string for each input |
out2String | A vector containing a string for each output |
state2String | A 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
-
inputs | A file name, in which each line stand for one input |
outputs | A file name, in which each line stand for one output |
states | A file name, in which each line stand for one state |
bool FsmPresentationLayer::compare |
( |
std::shared_ptr< FsmPresentationLayer > |
otherPresentationLayer | ) |
|
Compare two presentation layer to check if they are the same or not
- Parameters
-
otherPresentationLayer | The other presentation layer to be compared |
void FsmPresentationLayer::dumpIn |
( |
std::ostream & |
out | ) |
const |
Dump the current inputs into a standard output stream
- Parameters
-
out | The standard output to use |
void FsmPresentationLayer::dumpOut |
( |
std::ostream & |
out | ) |
const |
Dump the current outputs into a standard output stream
- Parameters
-
out | The standard output to use |
void FsmPresentationLayer::dumpState |
( |
std::ostream & |
out | ) |
const |
Dump the current states into a standard output stream
- Parameters
-
out | The standard output to use |
std::string FsmPresentationLayer::getInId |
( |
const unsigned int |
id | ) |
const |
Getter for a particular input name
- Parameters
-
- Returns
- The name if this input
std::string FsmPresentationLayer::getOutId |
( |
const unsigned int |
id | ) |
const |
Getter for a particular output name
- Parameters
-
- 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
-
id | The id of the state |
prefix | If 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:
- /Users/janpeleska/SharedFoldersWin/fsmlib-cpp/src/interface/FsmPresentationLayer.h
- /Users/janpeleska/SharedFoldersWin/fsmlib-cpp/src/interface/FsmPresentationLayer.cpp