FACT++
1.0
|
StateMachineImp::StateMachineImp | ( | std::ostream & | out = std::cout , |
const std::string & | name = "" |
||
) |
The state of the state machine (fCurrentState) is initialized with kSM_NotReady
Default state names for kSM_NotReady, kSM_Ready, kSM_Error and kSM_FatalError are set via AddStateName.
fExitRequested is set to 0, fRunning to false.
Furthermore, the ostream is propagated to MessageImp, as well as stored in fOut.
MessageImp is used for messages which are distributed (e.g. via DIM), fOut is used for messages which are only displayed on the local console.
Subsequent, i.e. derived classes should setup all allowed state transitions as well as all allowed configuration event by AddEvent and AddStateName.
out | A refrence to an ostream which allows to redirect the log-output to something else than cout. The default is cout. The reference is propagated to fLog |
name | The server name stored in fName |
Definition at line 122 of file StateMachineImp.cc.
References SetDefaultStateNames().
Referenced by Wrapper().