00001 // -*- C++ -*- 00002 00003 /** 00004 * @file ProxyConsumer_T.h 00005 * 00006 * ProxyConsumer_T.h,v 1.10 2006/03/14 06:14:34 jtc Exp 00007 * 00008 * @author Pradeep Gore <pradeep@oomworks.com> 00009 */ 00010 00011 #ifndef TAO_Notify_PROXYCONSUMER_T_H 00012 #define TAO_Notify_PROXYCONSUMER_T_H 00013 00014 #include /**/ "ace/pre.h" 00015 00016 #include "orbsvcs/Notify/notify_serv_export.h" 00017 00018 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00019 # pragma once 00020 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00021 00022 #include "orbsvcs/Notify/Proxy_T.h" 00023 #include "orbsvcs/Notify/ProxyConsumer.h" 00024 00025 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00026 00027 /** 00028 * @class TAO_Notify_ProxyConsumer_T 00029 * 00030 * @brief 00031 * 00032 */ 00033 template <class SERVANT_TYPE> 00034 class TAO_Notify_Serv_Export TAO_Notify_ProxyConsumer_T 00035 : public virtual TAO_Notify_Proxy_T <SERVANT_TYPE>, 00036 public virtual TAO_Notify_ProxyConsumer 00037 { 00038 public: 00039 /// Constuctor 00040 TAO_Notify_ProxyConsumer_T (void); 00041 00042 /// Destructor 00043 ~TAO_Notify_ProxyConsumer_T (); 00044 00045 /// Notification of subscriptions set at the admin. 00046 virtual void admin_types_changed (const CosNotification::EventTypeSeq & added, 00047 const CosNotification::EventTypeSeq & removed 00048 ACE_ENV_ARG_DECL); 00049 00050 virtual CosNotifyChannelAdmin::SupplierAdmin_ptr MyAdmin (ACE_ENV_SINGLE_ARG_DECL) 00051 ACE_THROW_SPEC (( 00052 CORBA::SystemException 00053 )); 00054 00055 virtual CosNotification::EventTypeSeq * obtain_subscription_types ( 00056 CosNotifyChannelAdmin::ObtainInfoMode mode 00057 ACE_ENV_ARG_DECL 00058 ) 00059 ACE_THROW_SPEC (( 00060 CORBA::SystemException 00061 )); 00062 00063 virtual void offer_change ( 00064 const CosNotification::EventTypeSeq & added, 00065 const CosNotification::EventTypeSeq & removed 00066 ACE_ENV_ARG_DECL 00067 ) 00068 ACE_THROW_SPEC (( 00069 CORBA::SystemException, 00070 CosNotifyComm::InvalidEventType 00071 )); 00072 00073 }; 00074 00075 TAO_END_VERSIONED_NAMESPACE_DECL 00076 00077 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE) 00078 #include "orbsvcs/Notify/ProxyConsumer_T.cpp" 00079 #endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ 00080 00081 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA) 00082 #pragma implementation ("ProxyConsumer_T.cpp") 00083 #endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */ 00084 00085 #include /**/ "ace/post.h" 00086 #endif /* TAO_Notify_PROXYCONSUMER_T_H */