00001 /* -*- C++ -*- */ 00002 /** 00003 * @file ProxyPushSupplier.h 00004 * 00005 * ProxyPushSupplier.h,v 1.17 2006/03/15 21:29:09 jtc Exp 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 /// Constuctor 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 00062 // = Interface methods 00063 virtual CosNotifyChannelAdmin::ProxyType MyType (ACE_ENV_SINGLE_ARG_DECL) 00064 ACE_THROW_SPEC (( 00065 CORBA::SystemException 00066 )); 00067 00068 virtual void connect_any_push_consumer ( 00069 CosEventComm::PushConsumer_ptr push_consumer 00070 ACE_ENV_ARG_DECL 00071 ) 00072 ACE_THROW_SPEC (( 00073 CORBA::SystemException, 00074 CosEventChannelAdmin::AlreadyConnected, 00075 CosEventChannelAdmin::TypeError 00076 )); 00077 00078 virtual void disconnect_push_supplier ( 00079 ACE_ENV_SINGLE_ARG_DECL 00080 ) 00081 ACE_THROW_SPEC (( 00082 CORBA::SystemException 00083 )); 00084 00085 private: 00086 /// TAO_Notify_Destroy_Callback methods 00087 virtual void release (void); 00088 }; 00089 00090 TAO_END_VERSIONED_NAMESPACE_DECL 00091 00092 #if defined(_MSC_VER) 00093 #pragma warning(pop) 00094 #endif /* _MSC_VER */ 00095 00096 #include /**/ "ace/post.h" 00097 00098 #endif /* TAO_Notify_PROXYPUSHSUPPLIER_H */