FACT++  1.0
template<class T , class S >
int StateMachineSQMControl< T, S >::Reconnect ( const EventImp evt)
inlineprivate

Definition at line 325 of file sqmctrl.cc.

References EventImp::GetBool(), and EventImp::GetString().

Referenced by StateMachineSQMControl< T, S >::StateMachineSQMControl().

326  {
327  // Close all connections to supress the warning in SetEndpoint
328  fSQM.PostClose(false);
329 
330  // Now wait until all connection have been closed and
331  // all pending handlers have been processed
332  ba::io_service::poll();
333 
334  if (evt.GetBool())
335  fSQM.SetEndpoint(evt.GetString());
336 
337  // Now we can reopen the connection
338  fSQM.PostClose(true);
339 
340  return T::GetCurrentState();
341  }
std::string GetString() const
Definition: EventImp.cc:194
bool GetBool() const
Definition: EventImp.h:90

+ Here is the call graph for this function:

+ Here is the caller graph for this function: