#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 115 of file EC_Lifetime_Utils.i.
00116 : orb_ () 00117 { 00118 } |
|
|
Destructor. If holding an ORB, destroy it.
Definition at line 121 of file EC_Lifetime_Utils.i. References ACE_CATCHANY, ACE_DECLARE_NEW_CORBA_ENV, ACE_ENDTRY, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_TRY, ACE_TRY_CHECK, and CORBA::is_nil().
00122 {
00123 if (!CORBA::is_nil (this->orb_.in ()))
00124 {
00125 ACE_DECLARE_NEW_CORBA_ENV;
00126 ACE_TRY
00127 {
00128 this->orb_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
00129 ACE_TRY_CHECK;
00130 }
00131 ACE_CATCHANY
00132 {
00133 // Ignore.
00134 }
00135 ACE_ENDTRY;
00136 }
00137 }
|
|
|
|
|
|
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 140 of file EC_Lifetime_Utils.i.
00141 {
00142 this->orb_ = orb_var;
00143 }
|
|
|
|
|
|
ORB to be destroyed.
Definition at line 171 of file EC_Lifetime_Utils.h. |
1.3.6