#include <EC_Lifetime_Utils.h>
Public Member Functions | |
TAO_EC_ORB_Holder (void) | |
Constructor. No-op. | |
~TAO_EC_ORB_Holder (void) | |
Destructor. If holding an ORB, destroy it. | |
void | init (CORBA::ORB_var orb_var) |
Private Member Functions | |
TAO_EC_ORB_Holder & | operator= (const TAO_EC_ORB_Holder &rhs) |
TAO_EC_ORB_Holder (const TAO_EC_ORB_Holder &rhs) | |
Private Attributes | |
CORBA::ORB_var | orb_ |
ORB to be destroyed. |
Holds a reference to an ORB, and calls destroy() on it in the destructor.
Definition at line 148 of file EC_Lifetime_Utils.h.
|
Constructor. No-op.
Definition at line 112 of file EC_Lifetime_Utils.inl.
00113 : orb_ () 00114 { 00115 } |
|
Destructor. If holding an ORB, destroy it.
Definition at line 118 of file EC_Lifetime_Utils.inl. References CORBA::is_nil().
00119 { 00120 if (!CORBA::is_nil (this->orb_.in ())) 00121 { 00122 try 00123 { 00124 this->orb_->destroy (); 00125 } 00126 catch (const CORBA::Exception&) 00127 { 00128 // Ignore. 00129 } 00130 } 00131 } |
|
|
|
Set the ORB to be destroyed in destructor to . If TAO_EC_ORB_Holder already held an orb prior to invocation of this method, that orb is NOT destroyed. Definition at line 134 of file EC_Lifetime_Utils.inl.
00135 { 00136 this->orb_ = orb_var; 00137 } |
|
|
|
ORB to be destroyed.
Definition at line 171 of file EC_Lifetime_Utils.h. |