TAO_Notify_ProxyConsumer_T< SERVANT_TYPE > Class Template Reference

#include <ProxyConsumer_T.h>

Inheritance diagram for TAO_Notify_ProxyConsumer_T< SERVANT_TYPE >:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_ProxyConsumer_T< SERVANT_TYPE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Notify_ProxyConsumer_T (void)
 Constructor.
 ~TAO_Notify_ProxyConsumer_T ()
 Destructor.
virtual void admin_types_changed (const CosNotification::EventTypeSeq &added, const CosNotification::EventTypeSeq &removed)
 Notification of subscriptions set at the admin.
virtual CosNotifyChannelAdmin::SupplierAdmin_ptr MyAdmin (void)
virtual CosNotification::EventTypeSeqobtain_subscription_types (CosNotifyChannelAdmin::ObtainInfoMode mode)
virtual void offer_change (const CosNotification::EventTypeSeq &added, const CosNotification::EventTypeSeq &removed)

Detailed Description

template<class SERVANT_TYPE>
class TAO_Notify_ProxyConsumer_T< SERVANT_TYPE >

Definition at line 31 of file ProxyConsumer_T.h.


Constructor & Destructor Documentation

template<class SERVANT_TYPE>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_ProxyConsumer_T< SERVANT_TYPE >::TAO_Notify_ProxyConsumer_T ( void   ) 

Constructor.

Definition at line 14 of file ProxyConsumer_T.cpp.

00015 {
00016 }

template<class SERVANT_TYPE>
TAO_Notify_ProxyConsumer_T< SERVANT_TYPE >::~TAO_Notify_ProxyConsumer_T (  ) 

Destructor.

Definition at line 19 of file ProxyConsumer_T.cpp.

00020 {
00021 }


Member Function Documentation

template<class SERVANT_TYPE>
void TAO_Notify_ProxyConsumer_T< SERVANT_TYPE >::admin_types_changed ( const CosNotification::EventTypeSeq added,
const CosNotification::EventTypeSeq removed 
) [virtual]

Notification of subscriptions set at the admin.

Implements TAO_Notify_Proxy.

Definition at line 24 of file ProxyConsumer_T.cpp.

References TAO_Notify_ProxyConsumer_T< SERVANT_TYPE >::offer_change().

00026 {
00027   this->offer_change (added, removed);
00028 }

template<class SERVANT_TYPE>
CosNotifyChannelAdmin::SupplierAdmin_ptr TAO_Notify_ProxyConsumer_T< SERVANT_TYPE >::MyAdmin ( void   )  [virtual]

Definition at line 31 of file ProxyConsumer_T.cpp.

References TAO_Pseudo_Var_T< T >::in(), TAO_Notify_Object::ref(), and TAO_Notify_ProxyConsumer::supplier_admin().

00032 {
00033   CosNotifyChannelAdmin::SupplierAdmin_var ret;
00034 
00035   CORBA::Object_var object = this->supplier_admin().ref ();
00036 
00037   ret = CosNotifyChannelAdmin::SupplierAdmin::_narrow (object.in ());
00038 
00039   return ret._retn ();
00040 }

template<class SERVANT_TYPE>
CosNotification::EventTypeSeq * TAO_Notify_ProxyConsumer_T< SERVANT_TYPE >::obtain_subscription_types ( CosNotifyChannelAdmin::ObtainInfoMode  mode  )  [virtual]

Definition at line 61 of file ProxyConsumer_T.cpp.

References TAO_Notify_Proxy::obtain_types().

00063 {
00064   return
00065     this->obtain_types (mode, this->event_manager().subscription_types ());
00066 }

template<class SERVANT_TYPE>
void TAO_Notify_ProxyConsumer_T< SERVANT_TYPE >::offer_change ( const CosNotification::EventTypeSeq added,
const CosNotification::EventTypeSeq removed 
) [virtual]

Definition at line 43 of file ProxyConsumer_T.cpp.

References ACE_GUARD_THROW_EX, TAO_Notify_EventTypeSeq::add_and_remove(), TAO_Notify_Object::event_manager(), TAO_Notify_Event_Manager::offer_change(), TAO_Notify_Proxy::subscribed_types_, and TAO_SYNCH_MUTEX.

Referenced by TAO_Notify_ProxyConsumer_T< SERVANT_TYPE >::admin_types_changed().

00044 {
00045   TAO_Notify_EventTypeSeq seq_added (added);
00046   TAO_Notify_EventTypeSeq seq_removed (removed);
00047 
00048   {
00049     ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_,
00050                         CORBA::INTERNAL ());
00051 
00052     this->subscribed_types_.add_and_remove (seq_added, seq_removed);
00053   }
00054 
00055   this->event_manager().offer_change (this,
00056                                       seq_added,
00057                                       seq_removed);
00058 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:46:26 2010 for TAO_CosNotification by  doxygen 1.4.7