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

Definition at line 306 of file dclient5.cc.

References Connection::PostMessage().

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

307  {
308  switch (evt.GetTargetState())
309  {
310  case kSM_Running: // We are coming from kRunning
311  case kSM_Starting: // We are coming from kConnected
312  T::Out() << "Received Start(" << i << ")" << endl;
313  c1.PostMessage("START", 10);
314  c2.PostMessage("START", 10);
315  // We could introduce a "waiting for execution" state
316  return T::GetCurrentState();
317  }
318  return T::kSM_FatalError;
319  }
void PostMessage(const void *msg, size_t s=0)
int i
Definition: db_dim_client.c:21
ConnectionFAD c1
Definition: dclient5.cc:195
ConnectionFAD c2
Definition: dclient5.cc:196

+ Here is the call graph for this function:

+ Here is the caller graph for this function: