00001 /* -*- C++ -*- */ 00002 /** 00003 * @file CosEC_ProxyPushSupplier.h 00004 * 00005 * CosEC_ProxyPushSupplier.h,v 1.18 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_PROXYPUSHSUPPLIER_H 00013 #define TAO_Notify_COSEC_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/CosEventChannelAdminS.h" 00024 00025 #include "orbsvcs/Notify/ProxySupplier_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 #if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT 00035 template class TAO_Notify_Serv_Export 00036 TAO_Notify_ProxySupplier_T<POA_CosEventChannelAdmin::ProxyPushSupplier>; 00037 #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */ 00038 00039 /** 00040 * @class TAO_Notify_CosEC_ProxyPushSupplier 00041 * 00042 * @brief 00043 * 00044 */ 00045 class TAO_Notify_Serv_Export TAO_Notify_CosEC_ProxyPushSupplier 00046 : public virtual TAO_Notify_ProxySupplier_T <POA_CosEventChannelAdmin::ProxyPushSupplier> 00047 { 00048 friend class TAO_Notify_Builder; 00049 public: 00050 /// Constuctor 00051 TAO_Notify_CosEC_ProxyPushSupplier (void); 00052 00053 /// Destructor 00054 virtual ~TAO_Notify_CosEC_ProxyPushSupplier (); 00055 00056 virtual const char * get_proxy_type_name (void) const; 00057 00058 // = Interface methods 00059 virtual void connect_push_consumer ( 00060 CosEventComm::PushConsumer_ptr push_consumer 00061 ACE_ENV_ARG_DECL 00062 ) 00063 ACE_THROW_SPEC (( 00064 CORBA::SystemException, 00065 CosEventChannelAdmin::AlreadyConnected, 00066 CosEventChannelAdmin::TypeError 00067 )); 00068 00069 virtual void disconnect_push_supplier ( 00070 ACE_ENV_SINGLE_ARG_DECL 00071 ) 00072 ACE_THROW_SPEC (( 00073 CORBA::SystemException 00074 )); 00075 00076 private: 00077 /// Release 00078 virtual void release (void); 00079 }; 00080 00081 TAO_END_VERSIONED_NAMESPACE_DECL 00082 00083 #if defined(_MSC_VER) 00084 #pragma warning(pop) 00085 #endif /* _MSC_VER */ 00086 00087 #include /**/ "ace/post.h" 00088 00089 #endif /* TAO_Notify_COSEC_PROXYPUSHSUPPLIER_H */