00001 /* -*- C++ -*- */ 00002 /** 00003 * @file ProxyPushConsumer.h 00004 * 00005 * $Id: ProxyPushConsumer.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_PROXYPUSHCONSUMER_H 00013 #define TAO_Notify_PROXYPUSHCONSUMER_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/Notify/ProxyConsumer_T.h" 00025 00026 #if defined(_MSC_VER) 00027 #pragma warning(push) 00028 #pragma warning(disable:4250) 00029 #endif /* _MSC_VER */ 00030 00031 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00032 00033 /** 00034 * @class TAO_Notify_ProxyPushConsumer 00035 * 00036 * @brief 00037 * 00038 */ 00039 class TAO_Notify_Serv_Export TAO_Notify_ProxyPushConsumer 00040 : public virtual TAO_Notify_ProxyConsumer_T < 00041 POA_CosNotifyChannelAdmin::ProxyPushConsumer 00042 > 00043 { 00044 typedef TAO_Notify_ProxyConsumer_T <POA_CosNotifyChannelAdmin::ProxyPushConsumer> SuperClass; 00045 friend class TAO_Notify_Builder; 00046 public: 00047 /// Constructor 00048 TAO_Notify_ProxyPushConsumer (void); 00049 00050 /// Destructor 00051 virtual ~TAO_Notify_ProxyPushConsumer (); 00052 00053 00054 // virtual void save_persistent (TAO_Notify::Topology_Saver& saver); 00055 virtual const char * get_proxy_type_name (void) const; 00056 00057 virtual void load_attrs (const TAO_Notify::NVPList& attrs); 00058 virtual void validate (); 00059 00060 virtual void configure(TAO_Notify_SupplierAdmin & admin, CosNotifyChannelAdmin::ProxyID_out proxy_id); 00061 00062 protected: 00063 ///= CosNotifyChannelAdmin::ProxyPushConsumer methods 00064 00065 virtual CosNotifyChannelAdmin::ProxyType MyType (void); 00066 00067 virtual void push (const CORBA::Any & data); 00068 00069 virtual void connect_any_push_supplier (CosEventComm::PushSupplier_ptr push_supplier); 00070 00071 virtual void disconnect_push_consumer (void); 00072 00073 private: 00074 /// Release 00075 virtual void release (void); 00076 }; 00077 00078 TAO_END_VERSIONED_NAMESPACE_DECL 00079 00080 #if defined(_MSC_VER) 00081 #pragma warning(pop) 00082 #endif /* _MSC_VER */ 00083 00084 #include /**/ "ace/post.h" 00085 #endif /* TAO_Notify_PROXYPUSHCONSUMER_H */