FACT++  1.0
template<class T , class S >
StateMachinePFminiControl< T, S >::StateMachinePFminiControl ( ostream &  out = cout)
inline

Definition at line 280 of file pfminictrl.cc.

References StateMachinePFminiControl< T, S >::Disconnect(), PFmini::State::kConnected, PFmini::State::kDisconnected, PFmini::State::kReceiving, StateMachinePFminiControl< T, S >::Reconnect(), and StateMachinePFminiControl< T, S >::SetVerbosity().

280  :
281  StateMachineAsio<T>(out, "PFMINI_CONTROL"), fPFmini(*this, *this)
282  {
283  // State names
284  T::AddStateName(PFmini::State::kDisconnected, "Disconnected",
285  "No connection to web-server could be established recently");
286 
287  T::AddStateName(PFmini::State::kConnected, "Connected",
288  "Connection established, but status still not known");
289 
290  T::AddStateName(PFmini::State::kReceiving, "Receiving",
291  "Connection established, receiving reports");
292 
293  // Commands
294  // Verbosity commands
295  T::AddEvent("SET_VERBOSE", "B")
296  (bind(&StateMachinePFminiControl::SetVerbosity, this, placeholders::_1))
297  ("set verbosity state"
298  "|verbosity[bool]:disable or enable verbosity for received data (yes/no), except dynamic data");
299 
300  // Conenction commands
301  T::AddEvent("DISCONNECT")
303  ("disconnect from ethernet");
304 
305  T::AddEvent("RECONNECT", "O")
306  (bind(&StateMachinePFminiControl::Reconnect, this, placeholders::_1))
307  ("(Re)connect ethernet connection to PFmini, a new address can be given"
308  "|[host][string]:new ethernet address in the form <host:port>");
309 
310  }
int SetVerbosity(const EventImp &evt)
Definition: pfminictrl.cc:263
int Reconnect(const EventImp &evt)
Definition: pfminictrl.cc:245

+ Here is the call graph for this function: