diff options
Diffstat (limited to 'CIAO/examples/space/Ground/Ground_Component_exec.cpp')
-rw-r--r-- | CIAO/examples/space/Ground/Ground_Component_exec.cpp | 161 |
1 files changed, 161 insertions, 0 deletions
diff --git a/CIAO/examples/space/Ground/Ground_Component_exec.cpp b/CIAO/examples/space/Ground/Ground_Component_exec.cpp new file mode 100644 index 00000000000..9c1bdb36ded --- /dev/null +++ b/CIAO/examples/space/Ground/Ground_Component_exec.cpp @@ -0,0 +1,161 @@ +#include "Ground_Component_exec.h" +#include "ciao/CIAO_common.h" + +namespace CIDL_Ground_Component +{ + //================================================================== + // Component Executor Implementation Class: Ground_Station_exec_i + //================================================================== + + Ground_Station_exec_i::Ground_Station_exec_i (void) + { + } + + Ground_Station_exec_i::~Ground_Station_exec_i (void) + { + } + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + void + Ground_Station_exec_i::push_recv_transmission ( + ::SPACE::Gizmo_Data * ev + ACE_ENV_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException)) + { + if (ACE_OS::strcmp (ev->sender (), "Exec-Agent") == 0) + { + ACE_DEBUG ((LM_DEBUG, "(%P|%t) Ground-Agent: " + "Got health data from %s.\n", ev->sender ())); + } + else + { + ACE_DEBUG ((LM_DEBUG, "(%P|%t) Ground-Agent: " + "Got sceince data from %s.\n", ev->sender ())); + } + } + + // Operations from Components::SessionComponent + + void + Ground_Station_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Ground_Station_Context::_narrow ( + ctx + ACE_ENV_ARG_PARAMETER); + ACE_CHECK; + + if (this->context_ == 0) + { + ACE_THROW ( ::CORBA::INTERNAL ()); + } + } + + void + Ground_Station_exec_i::ciao_preactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Ground_Station_exec_i::ciao_postactivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Ground_Station_exec_i::ccm_activate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Ground_Station_exec_i::ccm_passivate ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Ground_Station_exec_i::ccm_remove ( + ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Ground_Station_Factory_exec_i + //================================================================== + + Ground_Station_Factory_exec_i::Ground_Station_Factory_exec_i (void) + { + } + + Ground_Station_Factory_exec_i::~Ground_Station_Factory_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Ground_Station_Factory_exec_i::create ( + ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC (( ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Ground_Station_exec_i, + ::CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ()); + + return retval; + } + + extern "C" GROUND_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_SPACE_Ground_Station_Factory_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Ground_Station_Factory_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} |