00001 /* -*- C++ -*- */ 00002 /** 00003 * @file CosEC_ProxyPushConsumer.h 00004 * 00005 * CosEC_ProxyPushConsumer.h,v 1.20 2006/03/15 21:29:09 jtc Exp 00006 * 00007 * @author Pradeep Gore <pradeep@oomworks.com> 00008 * 00009 * 00010 */ 00011 00012 #ifndef TAO_Notify_COSEC_PROXYPUSHCONSUMER_H 00013 #define TAO_Notify_COSEC_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/CosEventChannelAdminS.h" 00024 00025 #include "orbsvcs/Notify/ProxyConsumer_T.h" 00026 00027 #if defined(_MSC_VER) 00028 #pragma warning(push) 00029 #pragma warning(disable:4250) 00030 #endif /* _MSC_VER */ 00031 00032 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00033 00034 /** 00035 * @class TAO_Notify_CosEC_ProxyPushConsumer 00036 * 00037 * @brief 00038 * 00039 */ 00040 class TAO_Notify_Serv_Export TAO_Notify_CosEC_ProxyPushConsumer 00041 : public virtual TAO_Notify_ProxyConsumer_T <POA_CosEventChannelAdmin::ProxyPushConsumer> 00042 { 00043 friend class TAO_Notify_Builder; 00044 public: 00045 /// Constuctor 00046 TAO_Notify_CosEC_ProxyPushConsumer (void); 00047 00048 /// Destructor 00049 virtual ~TAO_Notify_CosEC_ProxyPushConsumer (); 00050 00051 00052 virtual const char * get_proxy_type_name (void) const; 00053 00054 protected: 00055 ///= CosNotifyChannelAdmin::ProxyPushConsumer methods 00056 00057 virtual void push (const CORBA::Any & data ACE_ENV_ARG_DECL) 00058 ACE_THROW_SPEC (( 00059 CORBA::SystemException, 00060 CosEventComm::Disconnected 00061 )); 00062 00063 virtual void connect_push_supplier (CosEventComm::PushSupplier_ptr push_supplier ACE_ENV_ARG_DECL) 00064 ACE_THROW_SPEC (( 00065 CORBA::SystemException, 00066 CosEventChannelAdmin::AlreadyConnected 00067 )); 00068 00069 virtual void disconnect_push_consumer (ACE_ENV_SINGLE_ARG_DECL) 00070 ACE_THROW_SPEC (( 00071 CORBA::SystemException 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 00086 #endif /* TAO_Notify_COSEC_PROXYPUSHCONSUMER_H */