00001 /* -*- C++ -*- */ 00002 /** 00003 * @file StructuredProxyPushSupplier.h 00004 * 00005 * $Id: StructuredProxyPushSupplier.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_STRUCTUREDPROXYPUSHSUPPLIER_H 00013 #define TAO_Notify_STRUCTUREDPROXYPUSHSUPPLIER_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::StructuredProxyPushSupplier>; 00038 #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */ 00039 00040 /** 00041 * @class TAO_Notify_StructuredProxyPushSupplier 00042 * 00043 * @brief Implements the CosNotifyChannelAdmin::StructuredProxyPushSupplier methods. 00044 * 00045 * 00046 */ 00047 class TAO_Notify_Serv_Export TAO_Notify_StructuredProxyPushSupplier 00048 : public virtual TAO_Notify_ProxySupplier_T <POA_Event_Forwarder::StructuredProxyPushSupplier> 00049 { 00050 typedef TAO_Notify_ProxySupplier_T <POA_Event_Forwarder::StructuredProxyPushSupplier> SuperClass; 00051 friend class TAO_Notify_Builder; 00052 00053 public: 00054 /// Constructor 00055 TAO_Notify_StructuredProxyPushSupplier (void); 00056 00057 /// Destructor 00058 virtual ~TAO_Notify_StructuredProxyPushSupplier (); 00059 00060 00061 virtual void load_attrs (const TAO_Notify::NVPList& attrs); 00062 virtual void validate (); 00063 00064 /// = Servant methods 00065 // = interface methods 00066 virtual CosNotifyChannelAdmin::ProxyType MyType (void); 00067 00068 virtual void connect_structured_push_consumer ( 00069 CosNotifyComm::StructuredPushConsumer_ptr push_consumer 00070 ); 00071 00072 virtual void disconnect_structured_push_supplier ( 00073 ); 00074 00075 virtual const char * get_proxy_type_name (void) const; 00076 00077 virtual void configure(TAO_Notify_ConsumerAdmin & admin, CosNotifyChannelAdmin::ProxyID_out proxy_id); 00078 00079 private: 00080 00081 /// Release 00082 virtual void release (void); 00083 }; 00084 00085 TAO_END_VERSIONED_NAMESPACE_DECL 00086 00087 #if defined(_MSC_VER) 00088 #pragma warning(pop) 00089 #endif /* _MSC_VER */ 00090 00091 #include /**/ "ace/post.h" 00092 00093 #endif /* TAO_Notify_STRUCTUREDPROXYPUSHSUPPLIER_H */