diff options
Diffstat (limited to 'TAO/CIAO/DAnCE/examples/Hello/Sender/Sender_svnt.h.new_impl')
-rw-r--r-- | TAO/CIAO/DAnCE/examples/Hello/Sender/Sender_svnt.h.new_impl | 366 |
1 files changed, 366 insertions, 0 deletions
diff --git a/TAO/CIAO/DAnCE/examples/Hello/Sender/Sender_svnt.h.new_impl b/TAO/CIAO/DAnCE/examples/Hello/Sender/Sender_svnt.h.new_impl new file mode 100644 index 00000000000..35e25cf9fe0 --- /dev/null +++ b/TAO/CIAO/DAnCE/examples/Hello/Sender/Sender_svnt.h.new_impl @@ -0,0 +1,366 @@ +// $Id$ +// +// **** Code generated by the **** +// **** Component Integrated ACE ORB (CIAO) CIDL Compiler **** +// CIAO has been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// CIDL Compiler has been developed by: +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about CIAO is available at: +// http://www.dre.vanderbilt.edu/CIAO + +#ifndef CIAO_GLUE_SESSION_SENDER_SVNT_H +#define CIAO_GLUE_SESSION_SENDER_SVNT_H + +#include /**/ "ace/pre.h" + +#include "SenderEC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "ciao/Container_Base.h" +#include "ciao/Servant_Impl_T.h" +#include "ciao/Context_Impl_T.h" +#include "ciao/Home_Servant_Impl_Base.h" +#include "ciao/Home_Servant_Impl_T.h" +#include "ace/Active_Map_Manager_T.h" + +#include "SenderS.h" + +namespace Sender_Impl +{ + namespace CIAO_GLUE_Hello + { + template <typename T> + class ReadMessage_Servant_T + : public virtual POA_Hello::ReadMessage, + public virtual PortableServer::RefCountServantBase + { + public: + ReadMessage_Servant_T ( + ::Hello::CCM_ReadMessage_ptr executor, + ::Components::CCMContext_ptr ctx); + + virtual ~ReadMessage_Servant_T (void); + + virtual char * + get_message ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + + // Get component implementation. + virtual CORBA::Object_ptr + _get_component ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + + protected: + // Facet executor. + ::Hello::CCM_ReadMessage_var executor_; + + // Context object. + ::Components::CCMContext_var ctx_; + }; + + typedef SENDER_SVNT_Export ReadMessage_Servant_T<int> ReadMessage_Servant; + } + + namespace CIAO_GLUE_Hello + { + class Sender_Servant; + + class SENDER_SVNT_Export Sender_Context + : public virtual CIAO::Context_Impl< + ::Hello::CCM_Sender_Context, + Sender_Servant, + ::Hello::Sender, + ::Hello::Sender_var + > + { + public: + // We will allow the servant glue code we generate to access our state. + friend class Sender_Servant; + + /// Hack for VC6. + typedef CIAO::Context_Impl< + ::Hello::CCM_Sender_Context, + Sender_Servant, + ::Hello::Sender, + ::Hello::Sender_var + > ctx_svnt_base; + + Sender_Context ( + ::Components::CCMHome_ptr home, + ::CIAO::Session_Container *c, + Sender_Servant *sv); + + virtual ~Sender_Context (void); + + // Operations for Sender receptacles and event sources, + // defined in ::Hello::CCM_Sender_Context. + + virtual void + push_click_out ( + ::Hello::TimeOut *ev + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + // CIAO-specific. + + static Sender_Context * + _narrow ( + ::Components::SessionContext_ptr p + ACE_ENV_ARG_DECL_WITH_DEFAULTS); + + protected: + // Methods that manage this component's connections and consumers. + + virtual ::Components::Cookie * + subscribe_click_out ( + ::Hello::TimeOutConsumer_ptr c + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::ExceededConnectionLimit)); + + virtual ::Hello::TimeOutConsumer_ptr + unsubscribe_click_out ( + ::Components::Cookie *ck + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::InvalidConnection)); + + protected: + ACE_Active_Map_Manager< + ::Hello::TimeOutConsumer_var> + ciao_publishes_click_out_map_; + }; + } + + namespace CIAO_GLUE_Hello + { + class SENDER_SVNT_Export Sender_Servant + : public virtual CIAO::Servant_Impl< + POA_Hello::Sender, + ::Hello::CCM_Sender, + ::Hello::CCM_Sender_var, + Sender_Context + > + { + public: + /// Hack for VC6. + typedef CIAO::Servant_Impl< + POA_Hello::Sender, + ::Hello::CCM_Sender, + ::Hello::CCM_Sender_var, + Sender_Context + > comp_svnt_base; + + Sender_Servant ( + ::Hello::CCM_Sender_ptr executor, + ::Components::CCMHome_ptr home, + ::CIAO::Home_Servant_Impl_Base *home_servant, + ::CIAO::Session_Container *c); + + virtual ~Sender_Servant (void); + + virtual void + set_attributes ( + const ::Components::ConfigValues &descr + ACE_ENV_ARG_DECL); + + // Supported operations. + + virtual void + start ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + // Public port operations. + + virtual ::Hello::ReadMessage_ptr + provide_push_message ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual ::Components::Cookie * + subscribe_click_out ( + ::Hello::TimeOutConsumer_ptr c + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::ExceededConnectionLimit)); + + virtual ::Hello::TimeOutConsumer_ptr + unsubscribe_click_out ( + ::Components::Cookie *ck + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::InvalidConnection)); + + // Component attribute operations. + + virtual char * + local_message ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual void + local_message ( + const char * + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + // Operations for Receptacles interface. + + virtual ::Components::Cookie * + connect ( + const char *name, + CORBA::Object_ptr connection + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::InvalidName, + ::Components::InvalidConnection, + ::Components::AlreadyConnected, + ::Components::ExceededConnectionLimit)); + + virtual CORBA::Object_ptr + disconnect ( + const char *name, + ::Components::Cookie *ck + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::InvalidName, + ::Components::InvalidConnection, + ::Components::CookieRequired, + ::Components::NoConnection)); + + // Operations for Events interface. + + virtual ::Components::Cookie * + subscribe ( + const char *publisher_name, + ::Components::EventConsumerBase_ptr subscriber + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::InvalidName, + ::Components::InvalidConnection, + ::Components::ExceededConnectionLimit)); + + virtual ::Components::EventConsumerBase_ptr + unsubscribe ( + const char *publisher_name, + ::Components::Cookie *ck + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::InvalidName, + ::Components::InvalidConnection)); + + virtual void + connect_consumer ( + const char *emitter_name, + ::Components::EventConsumerBase_ptr consumer + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::InvalidName, + ::Components::AlreadyConnected, + ::Components::InvalidConnection)); + + // CIAO specific operations on the servant + CORBA::Object_ptr + get_facet_executor (const char *name + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC (( + ::CORBA::SystemException)); + + private: + + ::Hello::ReadMessage_var + provide_push_message_; + + private: + + void + populate_port_tables ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + ::CORBA::Object_ptr + provide_push_message_i ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + }; + } + + namespace CIAO_GLUE_Hello + { + class SENDER_SVNT_Export SenderHome_Servant + : public virtual CIAO::Home_Servant_Impl< + POA_Hello::SenderHome, + ::Hello::CCM_SenderHome, + ::Hello::CCM_SenderHome_var, + ::Hello::Sender, + ::Hello::Sender_var, + ::Hello::CCM_Sender, + ::Hello::CCM_Sender_var, + Sender_Servant + > + { + public: + /// Hack for VC6. + typedef CIAO::Home_Servant_Impl< + POA_Hello::SenderHome, + ::Hello::CCM_SenderHome, + ::Hello::CCM_SenderHome_var, + ::Hello::Sender, + ::Hello::Sender_var, + ::Hello::CCM_Sender, + ::Hello::CCM_Sender_var, + Sender_Servant + > home_svnt_base; + + SenderHome_Servant ( + ::Hello::CCM_SenderHome_ptr exe, + ::CIAO::Session_Container *c); + + virtual ~SenderHome_Servant (void); + + // Home operations. + + // Home factory and finder operations. + + // Attribute operations. + }; + + extern "C" SENDER_SVNT_Export ::PortableServer::Servant + createSenderHome_Servant ( + ::Components::HomeExecutorBase_ptr p, + CIAO::Session_Container *c + ACE_ENV_ARG_DECL_WITH_DEFAULTS); + } +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_GLUE_SESSION_SENDER_SVNT_H */ + |