diff options
Diffstat (limited to 'TAO/CIAO/examples/handcrafted/Display/RateGen/RateGen_svnt.h')
-rw-r--r-- | TAO/CIAO/examples/handcrafted/Display/RateGen/RateGen_svnt.h | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/TAO/CIAO/examples/handcrafted/Display/RateGen/RateGen_svnt.h b/TAO/CIAO/examples/handcrafted/Display/RateGen/RateGen_svnt.h index 2e7c5fb055e..1c6be65344a 100644 --- a/TAO/CIAO/examples/handcrafted/Display/RateGen/RateGen_svnt.h +++ b/TAO/CIAO/examples/handcrafted/Display/RateGen/RateGen_svnt.h @@ -22,6 +22,7 @@ // that component implementations use #include "ciao/Container_Base.h" //Source in the container interface definitions #include "tao/LocalObject.h" +#include "tao/PortableServer/Key_Adapters.h" #include "ace/Active_Map_Manager_T.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) @@ -285,8 +286,12 @@ namespace CIAO_GLUE_HUDisplay // CIAO specific operations. // Activate the object in the container_ - HUDisplay::RateGen_ptr - _ciao_activate_component (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + void + _ciao_activate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + void + _ciao_passivate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) ACE_THROW_SPEC ((CORBA::SystemException)); protected: @@ -356,17 +361,28 @@ namespace CIAO_GLUE_HUDisplay protected: // Helper method for factory operations. - HUDisplay::RateGen_ptr - _ciao_create_helper (::Components::EnterpriseComponent_ptr c - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException, - Components::CreateFailure)); + HUDisplay::RateGen_ptr + _ciao_activate_component (HUDisplay::CCM_RateGen_ptr exe + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + void + _ciao_passivate_component (HUDisplay::RateGen_ptr comp + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)); // My Executor. HUDisplay::CCM_RateGenHome_var executor_; // My Container CIAO::Session_Container *container_; + + // Components this home manages. + ACE_Hash_Map_Manager_Ex <PortableServer::ObjectId, + RateGen_Servant*, + TAO_ObjectId_Hash, + ACE_Equal_To<PortableServer::ObjectId>, + ACE_SYNCH_MUTEX> component_map_; }; extern "C" RATEGEN_SVNT_Export ::PortableServer::Servant |