FACT++  1.0
void StateMachineImp::SetDefaultStateNames ( )
protected

Sets the default state names. This function should be called in derived classes again if they overwrite SetStateName().

Definition at line 146 of file StateMachineImp.cc.

References AddStateName(), kSM_Error, kSM_FatalError, kSM_NotReady, and kSM_Ready.

Referenced by StateMachineDim::StateMachineDim(), StateMachineImp(), and Wrapper().

147 {
148  AddStateName(kSM_NotReady, "NotReady", "State machine not ready, events are ignored.");
149  AddStateName(kSM_Ready, "Ready", "State machine ready to receive events.");
150  AddStateName(kSM_Error, "ERROR", "Common error state.");
151  AddStateName(kSM_FatalError, "FATAL", "A fatal error occured, the eventloop is stopped.");
152 }
Mainloop running, state machine in operation.
Fatal error: stop program.
Mainloop not running, state machine stopped.
Error states should be between 0x100 and 0xffff.
virtual bool AddStateName(const int state, const std::string &name, const std::string &doc="")

+ Here is the call graph for this function:

+ Here is the caller graph for this function: