FACT++  1.0
template<class T>
int StateMachineFAD< T >::Configure ( const Event evt)
inline

Definition at line 422 of file dclient5.cc.

References Event::GetName(), and Connection::PostMessage().

423  {
424  if (evt.GetName()=="TIME")
425  {
426  c1.PostMessage("TIME", 10);
427  c2.PostMessage("TIME", 10);
428  }
429 
430  vector<char> v(2);
431  v[0] = 0xc0;
432  v[1] = 0x00;
433 
434  if (evt.GetName()=="LED")
435  c3.PostMessage(v);
436 
437  return T::GetCurrentState();
438  }
void PostMessage(const void *msg, size_t s=0)
ConnectionFAD c1
Definition: dclient5.cc:195
ConnectionFAD c3
Definition: dclient5.cc:197
std::string GetName() const
Return the stored name of the event.
Definition: Event.h:31
ConnectionFAD c2
Definition: dclient5.cc:196

+ Here is the call graph for this function: