#include <EC_Lifetime_Utils.h>
Public Member Functions | |
| TAO_EC_Event_Channel_Holder (void) | |
| Constructor. No-op. | |
| ~TAO_EC_Event_Channel_Holder (void) | |
| Destructor. If holding an Event Channel, destroy it. | |
| void | init (RtecEventChannelAdmin::EventChannel_var ec_var) |
Private Member Functions | |
| TAO_EC_Event_Channel_Holder & | operator= (const TAO_EC_Event_Channel_Holder &rhs) |
| TAO_EC_Event_Channel_Holder (const TAO_EC_Event_Channel_Holder &rhs) | |
Private Attributes | |
| RtecEventChannelAdmin::EventChannel_var | ec_ |
| EC to be destroyed. | |
Holds a reference to an Event Channel, and calls destroy() on it in the destructor.
Definition at line 184 of file EC_Lifetime_Utils.h.
|
|
Constructor. No-op.
Definition at line 148 of file EC_Lifetime_Utils.i.
00149 : ec_ () 00150 { 00151 } |
|
|
Destructor. If holding an Event Channel, destroy it.
Definition at line 154 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, ec_, and CORBA::is_nil().
00155 {
00156 if (!CORBA::is_nil (this->ec_.in ()))
00157 {
00158 ACE_DECLARE_NEW_CORBA_ENV;
00159 ACE_TRY
00160 {
00161 this->ec_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
00162 ACE_TRY_CHECK;
00163 }
00164 ACE_CATCHANY
00165 {
00166 // Ignore.
00167 }
00168 ACE_ENDTRY;
00169 }
00170 }
|
|
|
|
|
|
Set the Event Channel to be destroyed in destructor to ec_var. If TAO_EC_Event_Channel_Holder already held an Event Channel prior to invocation of this method, that Event Channel is NOT destroyed. Definition at line 173 of file EC_Lifetime_Utils.i. References ec_.
00175 {
00176 this->ec_ = ec_var;
00177 }
|
|
|
|
|
|
EC to be destroyed.
Definition at line 207 of file EC_Lifetime_Utils.h. Referenced by init(), and ~TAO_EC_Event_Channel_Holder(). |
1.3.6