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

Definition at line 384 of file gpsctrl.cc.

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

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

385  {
386  // Close all connections to supress the warning in SetEndpoint
387  fGPS.PostClose(false);
388 
389  // Now wait until all connection have been closed and
390  // all pending handlers have been processed
391  ba::io_service::poll();
392 
393  if (evt.GetBool())
394  fGPS.SetEndpoint(evt.GetString());
395 
396  // Now we can reopen the connection
397  fGPS.PostClose(true);
398 
399  return T::GetCurrentState();
400  }
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: