CARMA C++
|
Typed class for managing connections to DOs. More...
#include <carma/control/RemoteObjHandleT.h>
Public Member Functions | |
template<typename S > | |
S::_var_type | narrowedRemoteObj () const |
Returns remote object handle as var. More... | |
T::_var_type | remoteObj () const |
Returns remote object handle as var. More... | |
RemoteObjHandleT (const ::std::string &doName, monitor::MonitorPointBool *mpReachable, const monitor::MonitorSubsystem *subsystem, monitor::MonitorSystem *system, bool defaultLogIfNotReachable, bool defaultLogSentCommands) | |
Constructor. More... | |
virtual | ~RemoteObjHandleT () |
Destructor. More... | |
![]() | |
bool | attemptToReconnectIfNeeded () |
Try reconnect to the DO if needed. More... | |
::std::string | doName () const |
get the DO name More... | |
void | forceFullReconnect () |
Force a full re-lookup of the DO by name. More... | |
bool | isObjReachable () |
If state is 'not reachable' and monitor system is current, tries to reconnect. More... | |
bool | isObjReachable (bool logIfNotReachable) |
RemoteObjHandleBase (const ::std::string &doName, monitor::MonitorPointBool *mpReachable, const monitor::MonitorSubsystem *subsystem, monitor::MonitorSystem *system, bool defaultLogIfNotReachable, bool defaultLogSentCommands) | |
Constructor. More... | |
virtual | ~RemoteObjHandleBase () |
Destructor. More... | |
Protected Member Functions | |
virtual bool | resolveObjRef () |
![]() | |
bool | getDefaultLogIfNotReachable () const |
bool | getDefaultLogSentCommands () const |
void | invalidateObjRef () |
void | invalidateObjRefIfNeededForCaught () |
void | logException (const ::std::string &callString, const ::std::string &exString) const |
void | logSentCommand (const ::std::string &callString, const double mjd) const |
void | logSentCommand (const ::std::string &callString, const double mjd, const ::std::string &subDoName) const |
void | logSentCommandIfNeeded (const ::std::string &callString, const double mjd) const |
void | logSentCommandIfNeeded (const ::std::string &callString, const double mjd, const ::std::string &subDoName) const |
void | markObjRefValid () |
void | processException (const ::std::string &callString, const ::CORBA::Exception &corbaException) |
void | throwBadRemoteObjAccess () const |
void | throwIfObjRefIsNotValid () const |
Friends | |
class | RemoteObjMethodFunctorBase< T > |
Typed class for managing connections to DOs.
Definition at line 156 of file RemoteObjHandleT.h.
|
explicit |
Constructor.
Constructs reference to a DO using the name Resolves name using NameService and sets handle.
doName,name | bound to DO's IOR in NameService |
monitor::MonitorPointBool | * const, pointer to boolean monitor point which indicates whether DO is currently contactable. |
monitor::MonitorSubsystem | * const, pointer to monitor subsystem associated with this handle - used as an indicator of subsystem health. |
Definition at line 248 of file RemoteObjHandleT.h.
|
virtual |
S::_var_type carma::control::RemoteObjHandleT< T >::narrowedRemoteObj | ( | ) | const |
Returns remote object handle as var.
Definition at line 201 of file RemoteObjHandleT.h.
T::_var_type carma::control::RemoteObjHandleT< T >::remoteObj | ( | ) | const |
Returns remote object handle as var.
Definition at line 278 of file RemoteObjHandleT.h.