diff options
Diffstat (limited to 'TAO/CIAO/DAnCE/examples/BasicSP/BMDevice/BMDevice_svnt.h')
-rw-r--r-- | TAO/CIAO/DAnCE/examples/BasicSP/BMDevice/BMDevice_svnt.h | 618 |
1 files changed, 0 insertions, 618 deletions
diff --git a/TAO/CIAO/DAnCE/examples/BasicSP/BMDevice/BMDevice_svnt.h b/TAO/CIAO/DAnCE/examples/BasicSP/BMDevice/BMDevice_svnt.h deleted file mode 100644 index c5c3e2f506e..00000000000 --- a/TAO/CIAO/DAnCE/examples/BasicSP/BMDevice/BMDevice_svnt.h +++ /dev/null @@ -1,618 +0,0 @@ -// $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_BMDEVICE_SVNT_H -#define CIAO_GLUE_SESSION_BMDEVICE_SVNT_H - -#include /**/ "ace/pre.h" - -#include "BMDeviceEC.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 "tao/LocalObject.h" -#include "tao/PortableServer/Key_Adapters.h" -#include "ace/Active_Map_Manager_T.h" - -#include "../BasicSPS.h" -#include "BMDeviceS.h" - -namespace BMDevice_Impl -{ - namespace CIAO_GLUE_BasicSP - { - template <typename T> - class ReadData_Servant_T - : public virtual POA_BasicSP::ReadData, - public virtual PortableServer::RefCountServantBase - { - public: - ReadData_Servant_T ( - ::BasicSP::CCM_ReadData_ptr executor, - ::Components::CCMContext_ptr ctx); - - virtual ~ReadData_Servant_T (void); - - virtual char * - get_data ( - 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. - ::BasicSP::CCM_ReadData_var executor_; - - // Context object. - ::Components::CCMContext_var ctx_; - }; - - typedef BMDEVICE_SVNT_Export ReadData_Servant_T<int> ReadData_Servant; - } - - namespace CIAO_GLUE_BasicSP - { - class BMDEVICE_SVNT_Export BMDevice_Context - : public virtual ::BasicSP::CCM_BMDevice_Context, - public virtual TAO_Local_RefCounted_Object - { - public: - // We will allow the servant glue code we generate to access our state. - friend class BMDevice_Servant; - - BMDevice_Context ( - ::Components::CCMHome_ptr home, - ::CIAO::Session_Container *c, - BMDevice_Servant *sv); - - virtual ~BMDevice_Context (void); - - // Operations from ::Components::CCMContext. - - virtual ::Components::Principal_ptr - get_caller_principal ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual ::Components::CCMHome_ptr - get_CCM_home ( - ACE_ENV_SINGLE_ARG_DECL_NOT_USED) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual CORBA::Boolean - get_rollback_only ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::IllegalState)); - - virtual ::Components::Transaction::UserTransaction_ptr - get_user_transaction ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::IllegalState)); - - virtual CORBA::Boolean - is_caller_in_role ( - const char *role - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual void - set_rollback_only ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::IllegalState)); - - // Operations from ::Components::SessionContext interface. - - virtual CORBA::Object_ptr - get_CCM_object ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::IllegalState)); - - // Operations for BMDevice receptacles and event sources, - // defined in ::BasicSP::CCM_BMDevice_Context. - - virtual void - push_data_available ( - ::BasicSP::DataAvailable *ev - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - // CIAO-specific. - - ::CIAO::Session_Container * - _ciao_the_Container (void) const; - - static BMDevice_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_data_available ( - ::BasicSP::DataAvailableConsumer_ptr c - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::ExceededConnectionLimit)); - - virtual ::BasicSP::DataAvailableConsumer_ptr - unsubscribe_data_available ( - ::Components::Cookie *ck - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::InvalidConnection)); - - protected: - ACE_Active_Map_Manager< - ::BasicSP::DataAvailableConsumer_var> - ciao_publishes_data_available_map_; - - ::Components::CCMHome_var home_; - ::CIAO::Session_Container *container_; - - BMDevice_Servant *servant_; - ::BasicSP::BMDevice_var component_; - }; - } - - namespace CIAO_GLUE_BasicSP - { - class BMDEVICE_SVNT_Export BMDevice_Servant - : public virtual CIAO::Servant_Impl< - POA_BasicSP::BMDevice, - ::BasicSP::CCM_BMDevice, - ::BasicSP::CCM_BMDevice_var, - BMDevice_Context - >, - public virtual PortableServer::RefCountServantBase - { - public: - /// Hack for VC6 the most sucky compiler - typedef CIAO::Servant_Impl< - POA_BasicSP::BMDevice, - ::BasicSP::CCM_BMDevice, - ::BasicSP::CCM_BMDevice_var, - BMDevice_Context - > our_base; - - BMDevice_Servant ( - ::BasicSP::CCM_BMDevice_ptr executor, - ::Components::CCMHome_ptr home, - ::CIAO::Session_Container *c); - - virtual ~BMDevice_Servant (void); - - virtual void - set_attributes ( - const ::Components::ConfigValues &descr - ACE_ENV_ARG_DECL); - - // Supported operations. - - // Public port operations. - - virtual ::BasicSP::ReadData_ptr - provide_data_read ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual ::Components::Cookie * - subscribe_data_available ( - ::BasicSP::DataAvailableConsumer_ptr c - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::ExceededConnectionLimit)); - - virtual ::BasicSP::DataAvailableConsumer_ptr - unsubscribe_data_available ( - ::Components::Cookie *ck - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::InvalidConnection)); - - // Servant class for the timeout consumer. - class BMDEVICE_SVNT_Export TimeOutConsumer_timeout_Servant - : public virtual POA_BasicSP::TimeOutConsumer, - public virtual PortableServer::RefCountServantBase - { - public: - TimeOutConsumer_timeout_Servant ( - ::BasicSP::CCM_BMDevice_ptr executor, - ::BasicSP::CCM_BMDevice_Context_ptr c); - - virtual ~TimeOutConsumer_timeout_Servant (void); - - virtual void - push_TimeOut ( - ::BasicSP::TimeOut *evt - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - // Inherited from ::Components::EventConsumerBase. - virtual void - push_event (::Components::EventBase *ev - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::BadEventType)); - - // Get component implementation. - virtual CORBA::Object_ptr - _get_component ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - protected: - ::BasicSP::CCM_BMDevice_var - executor_; - - ::BasicSP::CCM_BMDevice_Context_var - ctx_; - }; - - virtual ::BasicSP::TimeOutConsumer_ptr - get_consumer_timeout ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - // Component attribute operations. - - // Operations for Navigation interface. - - virtual CORBA::Object_ptr - provide_facet ( - const char *name - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::InvalidName)); - - virtual ::Components::FacetDescriptions * - get_named_facets ( - const ::Components::NameList & /* names */ - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::InvalidName)); - - // 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)); - - virtual ::Components::ConnectionDescriptions * - get_connections ( - const char *name - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::InvalidName)); - - virtual ::Components::ReceptacleDescriptions * - get_all_receptacles ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual ::Components::ReceptacleDescriptions * - get_named_receptacles ( - const ::Components::NameList & /* names */ - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::InvalidName)); - - // Operations for Events interface. - - virtual ::Components::EventConsumerBase_ptr - get_consumer ( - const char *sink_name - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::InvalidName)); - - 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)); - - virtual ::Components::EventConsumerBase_ptr - disconnect_consumer ( - const char *source_name - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::InvalidName, - ::Components::NoConnection)); - - virtual ::Components::ConsumerDescriptions * - get_named_consumers ( - const ::Components::NameList & /* names */ - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::InvalidName)); - - virtual ::Components::EmitterDescriptions * - get_all_emitters ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual ::Components::EmitterDescriptions * - get_named_emitters( - const ::Components::NameList & /* names */ - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::InvalidName)); - - virtual ::Components::PublisherDescriptions * - get_all_publishers ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual ::Components::PublisherDescriptions * - get_named_publishers ( - const ::Components::NameList & /* names */ - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::InvalidName)); - - // Operations for CCMObject interface. - - virtual void - component_UUID ( - const char * new_component_UUID - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual CIAO::CONNECTION_ID - component_UUID ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual CORBA::IRObject_ptr - get_component_def ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual void - configuration_complete ( - ACE_ENV_SINGLE_ARG_DECL_NOT_USED) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::InvalidConfiguration)); - - virtual void - remove ( - ACE_ENV_SINGLE_ARG_DECL_NOT_USED) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::RemoveFailure)); - - // 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: - - ::BasicSP::ReadData_var - provide_data_read_; - - ::BasicSP::TimeOutConsumer_var - consumes_timeout_; - - private: - - void - populate_port_tables ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - ::CORBA::Object_ptr - provide_data_read_i ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - ::Components::EventConsumerBase_ptr - get_consumer_timeout_i ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - ACE_CString component_UUID_; - }; - } - - namespace CIAO_GLUE_BasicSP - { - class BMDEVICE_SVNT_Export BMDeviceHome_Servant - : public virtual POA_BasicSP::BMDeviceHome, - public virtual PortableServer::RefCountServantBase - { - public: - BMDeviceHome_Servant ( - ::BasicSP::CCM_BMDeviceHome_ptr exe, - ::CIAO::Session_Container *c); - virtual ~BMDeviceHome_Servant (void); - - // Home operations. - - // Home factory and finder operations. - - // Attribute operations. - - // Operations for keyless home interface. - - virtual ::Components::CCMObject_ptr - create_component ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::CreateFailure)); - - // Operations for implicit home interface. - - virtual ::BasicSP::BMDevice_ptr - create ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::CreateFailure)); - - // Operations for CCMHome interface. - - virtual ::CORBA::IRObject_ptr - get_component_def ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual ::CORBA::IRObject_ptr - get_home_def ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual void - remove_component ( - ::Components::CCMObject_ptr comp - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - ::CORBA::SystemException, - ::Components::RemoveFailure)); - - // Supported operations. - - protected: - // CIAO-specific operations. - - ::BasicSP::BMDevice_ptr - _ciao_activate_component ( - ::BasicSP::CCM_BMDevice_ptr exe - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - void - _ciao_passivate_component ( - ::BasicSP::BMDevice_ptr comp - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - protected: - ::BasicSP::CCM_BMDeviceHome_var - executor_; - - ::CIAO::Session_Container * - container_; - - ACE_Hash_Map_Manager_Ex< - PortableServer::ObjectId, - BMDevice_Servant *, - TAO_ObjectId_Hash, - ACE_Equal_To<PortableServer::ObjectId>, - ACE_SYNCH_MUTEX> - component_map_; - }; - - extern "C" BMDEVICE_SVNT_Export ::PortableServer::Servant - createBMDeviceHome_Servant ( - ::Components::HomeExecutorBase_ptr p, - CIAO::Session_Container *c - ACE_ENV_ARG_DECL_WITH_DEFAULTS); - } -} - -#include /**/ "ace/post.h" - -#endif /* CIAO_GLUE_SESSION_BMDEVICE_SVNT_H */ - |