FACT++
1.0
|
bool StateMachine::ProcessCommand | ( | const std::string & | str, |
const char * | ptr, | ||
size_t | siz | ||
) |
This is (analog to StateMachineDim::commandHandler()) the function which is called if an event from the console is received. It then is supposed to send the event to the messge queue or handle it directly if the machine was not yet started.
If fCurrentState is smaller than 0 or we are in kSM_FatalError state, all incoming commands are ignored.
The commandHandler will go through the list of available commands (fListOfEventss). If the received command was recognized, it is added via PostCommand into the fifo.
Definition at line 63 of file StateMachine.cc.
Referenced by StateMachine().