00001 /* -*- C++ -*- */ 00002 /** 00003 * @file ProxyPushSupplier.h 00004 * 00005 * $Id: ProxyPushSupplier.h 87253 2009-10-28 23:29:32Z dai_y $ 00006 * 00007 * @author Pradeep Gore <pradeep@oomworks.com> 00008 * 00009 * 00010 */ 00011 00012 #ifndef TAO_Notify_PROXYPUSHSUPPLIER_H 00013 #define TAO_Notify_PROXYPUSHSUPPLIER_H 00014 00015 #include /**/ "ace/pre.h" 00016 00017 #include "orbsvcs/Notify/notify_serv_export.h" 00018 00019 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00020 # pragma once 00021 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00022 00023 #include "orbsvcs/CosNotifyChannelAdminS.h" 00024 #include "orbsvcs/Event_ForwarderS.h" 00025 00026 #include "orbsvcs/Notify/ProxySupplier_T.h" 00027 00028 #if defined(_MSC_VER) 00029 #pragma warning(push) 00030 #pragma warning(disable:4250) 00031 #endif /* _MSC_VER */ 00032 00033 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00034 00035 #if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT 00036 template class TAO_Notify_Serv_Export 00037 TAO_Notify_ProxySupplier_T<POA_Event_Forwarder::ProxyPushSupplier>; 00038 #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */ 00039 00040 /** 00041 * @class TAO_Notify_ProxyPushSupplier 00042 * 00043 * @brief 00044 * 00045 */ 00046 class TAO_Notify_Serv_Export TAO_Notify_ProxyPushSupplier 00047 : public virtual TAO_Notify_ProxySupplier_T <POA_Event_Forwarder::ProxyPushSupplier> 00048 { 00049 typedef TAO_Notify_ProxySupplier_T <POA_Event_Forwarder::ProxyPushSupplier> SuperClass; 00050 friend class TAO_Notify_Builder; 00051 public: 00052 /// Constructor 00053 TAO_Notify_ProxyPushSupplier (void); 00054 00055 /// Destructor 00056 virtual ~TAO_Notify_ProxyPushSupplier (); 00057 00058 virtual const char * get_proxy_type_name (void) const; 00059 00060 virtual void load_attrs (const TAO_Notify::NVPList& attrs); 00061 virtual void validate (); 00062 virtual void configure(TAO_Notify_ConsumerAdmin & admin, CosNotifyChannelAdmin::ProxyID_out proxy_id); 00063 00064 // = Interface methods 00065 virtual CosNotifyChannelAdmin::ProxyType MyType (void); 00066 00067 virtual void connect_any_push_consumer ( 00068 CosEventComm::PushConsumer_ptr push_consumer 00069 ); 00070 00071 virtual void disconnect_push_supplier ( 00072 ); 00073 00074 private: 00075 /// TAO_Notify_Destroy_Callback methods 00076 virtual void release (void); 00077 }; 00078 00079 TAO_END_VERSIONED_NAMESPACE_DECL 00080 00081 #if defined(_MSC_VER) 00082 #pragma warning(pop) 00083 #endif /* _MSC_VER */ 00084 00085 #include /**/ "ace/post.h" 00086 00087 #endif /* TAO_Notify_PROXYPUSHSUPPLIER_H */