FACT++  1.0
StateMachineTimeCheck::StateMachineTimeCheck ( ostream &  out = cout)
inline

Definition at line 124 of file timecheck.cc.

References Trigger().

124  : StateMachineDim(out, "TIME_CHECK"),
125  fService("TIME_CHECK/OFFSET", "F:1", "Time offset measured with ntp|offset[ms]:Time offset in milliseconds")
126  {
127  // State names
128  AddStateName(kStateRunning, "Valid", "Last check was valid.");
129  AddStateName(kStateOutOfRange, "OutOfRange", "Last time check exceeded 1s.");
130 
131  AddEvent("TRIGGER");
132  (bind(&StateMachineTimeCheck::Trigger, this))
133  ("Trigger update");
134 
135  }
EventImp & AddEvent(const std::string &name, const std::string &states, const std::string &fmt)
StateMachineDim(std::ostream &out=std::cout, const std::string &name="DEFAULT")
DimDescribedService fService
Definition: timecheck.cc:26
bool AddStateName(const int state, const std::string &name, const std::string &doc="")

+ Here is the call graph for this function: