diff options
author | jai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-29 21:10:39 +0000 |
---|---|---|
committer | jai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-29 21:10:39 +0000 |
commit | e7b830ab561638ed25822054be80ce12e8801d38 (patch) | |
tree | a5b9aa16924c541fcb424ee9460b1ac7f5a89352 /modules/CIAO/RACE/Controller/Component/Controller_exec.cpp | |
parent | 9b720f395833b3ce2f499463e5fed37a0da926f4 (diff) | |
download | ATCD-DiffServ-Merge.tar.gz |
branching/taggingDiffServ-Merge
Diffstat (limited to 'modules/CIAO/RACE/Controller/Component/Controller_exec.cpp')
-rw-r--r-- | modules/CIAO/RACE/Controller/Component/Controller_exec.cpp | 160 |
1 files changed, 160 insertions, 0 deletions
diff --git a/modules/CIAO/RACE/Controller/Component/Controller_exec.cpp b/modules/CIAO/RACE/Controller/Component/Controller_exec.cpp new file mode 100644 index 00000000000..1606e03a867 --- /dev/null +++ b/modules/CIAO/RACE/Controller/Component/Controller_exec.cpp @@ -0,0 +1,160 @@ +// $Id$ +#include "Controller_exec.h" +#include "ciao/CIAO_common.h" + +namespace CIAO +{ + namespace RACE + { + namespace CIDL_Controller_Impl + { + Controller_exec_i::Controller_exec_i (void) + { + } + + Controller_exec_i::~Controller_exec_i (void) + { + } + + // Supported operations. + void + Controller_exec_i::start () + ACE_THROW_SPEC ((::CORBA::SystemException)) + {} + + void + Controller_exec_i::stop () + ACE_THROW_SPEC ((::CORBA::SystemException)) + {} + + // Attribute operations. + + ::CORBA::Double + Controller_exec_i::sampling_period () + ACE_THROW_SPEC ((CORBA::SystemException)) + { + // Your code here. + return 0.0; + } + + // Port operations. + + // Operations from Components::SessionComponent + + void + Controller_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)) + { + this->context_ = + Controller_Context::_narrow ( + ctx); + + if (this->context_ == 0) + { + throw CORBA::INTERNAL (); + } + } + + void + Controller_exec_i::ciao_preactivate () + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Controller_exec_i::ciao_postactivate () + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Controller_exec_i::ccm_activate () + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Controller_exec_i::ccm_passivate () + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + void + Controller_exec_i::ccm_remove () + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)) + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Controller_Home_exec_i + //================================================================== + + Controller_Home_exec_i::Controller_Home_exec_i (void) + { + } + + Controller_Home_exec_i::~Controller_Home_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Controller_Home_exec_i::create () + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::Components::CCMException)) + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Controller_exec_i, + CORBA::NO_MEMORY ()); + + return retval; + } + + extern "C" CONTROLLER_EXEC_Export ::Components::HomeExecutorBase_ptr + create_CIAO_RACE_Controller_Home_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Controller_Home_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } + } + } +} |