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

Definition at line 495 of file tngweather.cc.

References State::kConnected, State::kDisconnected, MagicLidar::State::kReceiving, and StateMachineWeather< T, S >::SetVerbosity().

495  :
496  StateMachineAsio<T>(out, "TNG_WEATHER"), fWeather(*this, *this)
497  {
498  // State names
499  T::AddStateName(State::kDisconnected, "NoConnection",
500  "No connection to web-server could be established recently");
501 
502  T::AddStateName(State::kConnected, "Invalid",
503  "Connection to webserver can be established, but received data is not recent or invalid");
504 
505  T::AddStateName(State::kReceiving, "Valid",
506  "Connection to webserver can be established, receint data received");
507 
508  // Verbosity commands
509  T::AddEvent("SET_VERBOSE", "B")
510  (bind(&StateMachineWeather::SetVerbosity, this, placeholders::_1))
511  ("set verbosity state"
512  "|verbosity[bool]:disable or enable verbosity for received data (yes/no), except dynamic data");
513 /*
514  // Conenction commands
515  AddEvent("DISCONNECT")
516  (bind(&StateMachineWeather::Disconnect, this))
517  ("disconnect from ethernet");
518 
519  AddEvent("RECONNECT", "O")
520  (bind(&StateMachineWeather::Reconnect, this, placeholders::_1))
521  ("(Re)connect ethernet connection to FTM, a new address can be given"
522  "|[host][string]:new ethernet address in the form <host:port>");
523 */
524  }
int SetVerbosity(const EventImp &evt)

+ Here is the call graph for this function: