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

Definition at line 277 of file dclient5.cc.

References EventImp::GetText().

Referenced by StateMachineFAD< T >::StateMachineFAD().

278  {
279  string cmd = evt.GetText();
280 
281  size_t p0 = cmd.find_first_of(' ');
282  if (p0==string::npos)
283  p0 = cmd.length();
284 
285  T::Out() << "\nCommand: '" << cmd.substr(0, p0) << "'" << cmd.substr(p0)<< "'" << endl;
286  /*
287  const Converter c(T::Out(), "B:5;I:2;F;W;O;C", "yes no false 0 1 31 42 11.12 \"test hallo\" ");
288 
289  T::Out() << c.GetRc() << endl;
290  T::Out() << c.N() << endl;
291  T::Out() << c.Get<bool>(0) << endl;
292  T::Out() << c.Get<bool>(1) << endl;
293  T::Out() << c.Get<bool>(2) << endl;
294  T::Out() << c.Get<bool>(3) << endl;
295  T::Out() << c.Get<bool>(4) << endl;
296  T::Out() << c.Get<int>(5) << endl;
297  T::Out() << c.Get<int>(6) << endl;
298  T::Out() << c.Get<float>(7) << endl;
299  T::Out() << c.Get<int>(7) << endl;
300  T::Out() << c.Get<string>(8) << endl;
301  T::Out() << c.Get<string>(9) << endl;
302  T::Out() << c.Get<string>(10) << endl;
303  */
304  return T::GetCurrentState();
305  }
const char * GetText() const
Definition: EventImp.h:88

+ Here is the call graph for this function:

+ Here is the caller graph for this function: