#include <PushSupplier.h>
Inheritance diagram for TAO_Notify_PushSupplier:
Public Member Functions | |
TAO_Notify_PushSupplier (TAO_Notify_ProxyConsumer *proxy) | |
Constuctor. | |
virtual | ~TAO_Notify_PushSupplier () |
Destructor. | |
void | init (CosEventComm::PushSupplier_ptr push_supplier) |
Init. | |
virtual ACE_CString | get_ior (void) const |
Retrieve the ior of this peer. | |
Protected Attributes | |
CosEventComm::PushSupplier_var | push_supplier_ |
The Supplier. | |
Private Member Functions | |
virtual void | release (void) |
TAO_Notify_Destroy_Callback methods. |
|
Constuctor.
Definition at line 10 of file PushSupplier.cpp.
00011 :TAO_Notify_Supplier (proxy) 00012 { 00013 } |
|
Destructor.
Definition at line 15 of file PushSupplier.cpp.
00016 { 00017 } |
|
Retrieve the ior of this peer.
Implements TAO_Notify_Peer. Definition at line 44 of file PushSupplier.cpp. References ACE_CString, TAO_Notify_Properties::instance(), and TAO_Notify_Properties::orb().
00045 { 00046 ACE_CString result; 00047 CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb(); 00048 try 00049 { 00050 CORBA::String_var ior = orb->object_to_string(this->push_supplier_.in()); 00051 result = static_cast<const char*> (ior.in ()); 00052 } 00053 catch (const CORBA::Exception&) 00054 { 00055 result.fast_clear(); 00056 } 00057 return result; 00058 } |
|
Init.
Definition at line 20 of file PushSupplier.cpp. References push_supplier_. Referenced by TAO_Notify_ProxyPushConsumer::connect_any_push_supplier(), and TAO_Notify_CosEC_ProxyPushConsumer::connect_push_supplier().
00021 { 00022 // TODO: verify single init call 00023 // push_supplier is optional 00024 this->push_supplier_ = CosEventComm::PushSupplier::_duplicate (push_supplier); 00025 00026 try 00027 { 00028 this->subscribe_ = CosNotifyComm::NotifySubscribe::_narrow (push_supplier); 00029 } 00030 catch (const CORBA::Exception&) 00031 { 00032 // _narrow failed which probably means the interface is CosEventComm type. 00033 } 00034 } |
|
TAO_Notify_Destroy_Callback methods.
Implements TAO_Notify_Peer. Definition at line 37 of file PushSupplier.cpp.
00038 { 00039 delete this; 00040 //@@ inform factory 00041 } |
|
The Supplier.
Definition at line 53 of file PushSupplier.h. Referenced by init(). |