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

Definition at line 815 of file fscctrl.cc.

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

815  :
816  StateMachineAsio<T>(out, "FSC_CONTROL"), fFSC(*this, *this)
817  {
818  // State names
819  T::AddStateName(State::kDisconnected, "Disconnected",
820  "FSC board not connected via ethernet.");
821 
822  T::AddStateName(State::kConnected, "Connected",
823  "Ethernet connection to FSC established.");
824 
825  // Verbosity commands
826  T::AddEvent("SET_VERBOSE", "B:1")
827  (bind(&StateMachineFSC::SetVerbosity, this, placeholders::_1))
828  ("set verbosity state"
829  "|verbosity[bool]:disable or enable verbosity for received data (yes/no), except dynamic data");
830 
831  // Conenction commands
832  T::AddEvent("DISCONNECT", State::kConnected)
833  (bind(&StateMachineFSC::Disconnect, this))
834  ("disconnect from ethernet");
835 
836  T::AddEvent("RECONNECT", "O", State::kDisconnected, State::kConnected)
837  (bind(&StateMachineFSC::Reconnect, this, placeholders::_1))
838  ("(Re)connect ethernet connection to FSC, a new address can be given"
839  "|[host][string]:new ethernet address in the form <host:port>");
840 
841  fFSC.StartConnect();
842  }
int Disconnect()
Definition: fscctrl.cc:762
int Reconnect(const EventImp &evt)
Definition: fscctrl.cc:770
int SetVerbosity(const EventImp &evt)
Definition: fscctrl.cc:804

+ Here is the call graph for this function: