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

Definition at line 244 of file evtserver.cc.

References EventServer::State::kIdle, EventServer::State::kRunning, StateMachineImp::kSM_Error, EventServer::State::kStandby, StartDate(), StartServer(), StopServer(), and DimDescribedState::Subscribe().

244  : StateMachineDim(out, "EVENT_SERVER"),
245  fDimFadControl("FAD_CONTROL"), fStartDate(0), fNight(0), fIn(0), fMax(1440)
246 
247  {
248  fDimFadControl.Subscribe(*this);
249 
250  // State names
252  "Event server stopped.");
254  "Reading events file and writing to output.");
256  "No events are processed, either the sun is down or fadctrl in kRunInProgress.");
257 
258 
261  ("Start serving the smartfact camera file");
262 
264  (bind(&StateMachineEventServer::StartDate, this, placeholders::_1))
265  ("Start serving the smartfact camera file with the events from the given date"
266  "|uint32[yyyymmdd]:Integer representing the date from which the data should be read");
267 
270  ("Stop serving the smartfact camera file");
271  }
EventImp & AddEvent(const std::string &name, const std::string &states, const std::string &fmt)
virtual void Subscribe(StateMachineImp &imp)
Definition: DimState.h:134
StateMachineDim(std::ostream &out=std::cout, const std::string &name="DEFAULT")
int StartDate(const EventImp &evt)
Definition: evtserver.cc:236
vector< float > fMax
Definition: evtserver.cc:51
DimDescribedState fDimFadControl
Definition: evtserver.cc:35
Error states should be between 0x100 and 0xffff.
bool AddStateName(const int state, const std::string &name, const std::string &doc="")

+ Here is the call graph for this function: