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

Definition at line 346 of file agilentctrl.cc.

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

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

347  {
348  // Close all connections to supress the warning in SetEndpoint
349  fAgilent.PostClose(false);
350 
351  // Now wait until all connection have been closed and
352  // all pending handlers have been processed
353  ba::io_service::poll();
354 
355  if (evt.GetBool())
356  fAgilent.SetEndpoint(evt.GetString());
357 
358  // Now we can reopen the connection
359  fAgilent.PostClose(true);
360 
361  return T::GetCurrentState();
362  }
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: