1 #ifndef FACT_StateMachineDim 2 #define FACT_StateMachineDim 19 DimLog(std::ostream &out,
const std::string &name) : fLog(name, out) { }
80 void exitHandler(
int code);
81 void commandHandler();
84 EventImp *CreateEvent(
const std::string &name,
const std::string &fmt);
85 EventImp *CreateService(
const std::string &name);
90 std::string SetCurrentState(
int state,
const char *txt=
"",
const std::string &cmd=
"");
96 StateMachineDim(std::ostream &out=std::cout,
const std::string &name=
"DEFAULT");
99 int Write(
const Time &
time,
const std::string &txt,
int qos=kMessage);
101 bool AddStateName(
const int state,
const std::string &name,
const std::string &doc=
"");
DimStart(const std::string &name, MessageImp &imp)
DimDescribedService fDescriptionStates
Version number.
friend class StateMachineDim
A general base-class describing events issues in a state machine.
DimLog(std::ostream &out, const std::string &name)
Base class for a state machine implementation.
A base class taking care of padding, exit handler and error handlers.
The base implementation of a distributed messaging system.
Adds some functionality to boost::posix_time::ptime for our needs.
static const int fVersion
const bool fIsValidServer
DimDescribedService fSrvState
DimService propagating the state descriptions.
Based on MessageImp, redirects log-output to a Dim service MESSAGE.
bool MessageQueueEmpty() const
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
Ensures that the MessageDimTX is initialized before errors could be redirected to it...
Ensures calling DimServer::start() in its constructor and DimServer::stop() in its destructor...
Class for a state machine implementation within a DIM network.
bool MessageQueueEmpty() const
static void setNoDataCopy()