diff options
Diffstat (limited to 'CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp')
4 files changed, 0 insertions, 485 deletions
diff --git a/CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp/src/Hello_Receiver_comp.idl b/CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp/src/Hello_Receiver_comp.idl deleted file mode 100644 index 798151db843..00000000000 --- a/CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp/src/Hello_Receiver_comp.idl +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef HELLO_RECEIVER_IDL -#define HELLO_RECEIVER_IDL - -#include <Components.idl> - -#include "Hello_MyFoo_obj.idl" - -module Hello -{ - component Receiver_comp - { - /// Provides - provides MyFoo_obj do_my_foo; - }; -}; -#endif diff --git a/CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp/src/Hello_Receiver_comp.mpc b/CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp/src/Hello_Receiver_comp.mpc deleted file mode 100644 index 54f7a9b0857..00000000000 --- a/CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp/src/Hello_Receiver_comp.mpc +++ /dev/null @@ -1,162 +0,0 @@ -project(AMI_Hello_Tuto_Hello_Receiver_idl_gen) : componentidldefaults { - custom_only = 1 - after += AMI_Hello_Tuto_idl_gen - idlflags += -Wb,stub_export_macro=HELLO_RECEIVER_COMP_STUB_Export \ - -Wb,stub_export_include=Hello_Receiver_comp_stub_export.h \ - -Wb,skel_export_macro=HELLO_RECEIVER_COMP_SVNT_Export \ - -Wb,skel_export_include=Hello_Receiver_comp_svnt_export.h \ - -Wb,exec_export_macro=HELLO_RECEIVER_COMP_EXEC_Export \ - -Wb,exec_export_include=Hello_Receiver_comp_exec_export.h \ - -Glem \ - -I../../ports \ - -I../../GeneratedCode \ - -o ../../GeneratedCode - - - IDL_Files { - Hello_Receiver_comp.idl - gendir=../../GeneratedCode - } -} - -project(AMI_Hello_Hello_Receiver_exec_idl_gen) : componentidldefaults { - requires += dummy_label - custom_only = 1 - idlflags += -Gex -SS -Sci \ - -I../ports \ - -I../../ports \ - -o ../../../Tutorial/Code/GeneratedExec - - IDL_Files { - Hello_Receiver_comp.idl - } -} - -project(AMI_Hello_Tuto_Hello_Receiver_lem_gen) : ciaoidldefaults { - after += AMI_Hello_Tuto_Hello_Receiver_idl_gen - custom_only = 1 - idlflags += -Wb,stub_export_macro=HELLO_RECEIVER_COMP_LEM_STUB_Export \ - -Wb,stub_export_include=Hello_Receiver_comp_lem_stub_export.h \ - -SS -Gxhst \ - -I../../ports \ - -I../../GeneratedCode\ - -o ../../GeneratedCode - - - IDL_Files { - ../../GeneratedCode/Hello_Receiver_compE.idl - gendir=../../GeneratedCode - } -} - -project(AMI_Hello_Tuto_Hello_Receiver_l_stub) : ccm_svnt, messaging { - after += AMI_Hello_Tuto_Hello_Receiver_lem_gen\ - AMI_Hello_Tuto_Hello_Receiver_stub AMI_Hello_Tuto_stub - libs += Hello_MyFoo_obj_stub Hello_Receiver_comp_stub - libpaths += ../../lib - libout = ../../lib - sharedname = Hello_Receiver_comp_lem_stub - dynamicflags += HELLO_RECEIVER_COMP_LEM_STUB_BUILD_DLL - includes += ../.. ../../GeneratedCode - IDL_Files { - } - - Source_Files { - ../../GeneratedCode/Hello_Receiver_compEC.cpp - } - - Header_Files { - ../../GeneratedCode/Hello_Receiver_compEC.h - ../../GeneratedCode/Hello_Receiver_comp_lem_stub_export.h - } - - Inline_Files { - ../../GeneratedCode/Hello_Receiver_compEC.inl - } -} - -project(AMI_Hello_Tuto_Hello_Receiver_stub) : ccm_stub, messaging { - after += AMI_Hello_Tuto_Hello_Receiver_idl_gen AMI_Hello_Tuto_stub - libs += Hello_MyFoo_obj_stub - libpaths += ../../lib - libout = ../../lib - sharedname = Hello_Receiver_comp_stub - dynamicflags += HELLO_RECEIVER_COMP_STUB_BUILD_DLL - includes += ../../GeneratedCode - - IDL_Files { - } - - Source_Files { - ../../GeneratedCode/Hello_Receiver_compC.cpp - } - - Header_Files { - ../../GeneratedCode/Hello_Receiver_compC.h - ../../GeneratedCode/Hello_Receiver_comp_stub_export.h - } - - Inline_Files { - ../../GeneratedCode/Hello_Receiver_compC.inl - } -} - -project(AMI_Hello_Tuto_Hello_Receiver_exec) : ciao_executor, messaging { - after += AMI_Hello_Tuto_Hello_Receiver_l_stub\ - AMI_Hello_Tuto_Hello_Receiver_stub\ - AMI_Hello_Tuto_stub AMI_Hello_Tuto_lem_stub - sharedname = Hello_Receiver_comp_exec - libs += Hello_Receiver_comp_stub Hello_Receiver_comp_lem_stub\ - Hello_MyFoo_obj_stub\ - Hello_MyFoo_obj_lem_stub Hello_common_defn_stub - libpaths += ../../lib - libout = ../../lib - dynamicflags += HELLO_RECEIVER_COMP_EXEC_BUILD_DLL - includes += ../../GeneratedCode - - IDL_Files { - } - - Source_Files { - Hello_Receiver_comp_exec.cpp - } - - Header_Files { - Hello_Receiver_comp_exec.h - ../../GeneratedCode/Hello_Receiver_comp_exec_export.h - } - - Inline_Files { - } -} - -project(AMI_Hello_Tuto_Hello_Receiver_svnt) : ciao_servant, messaging { - after += AMI_Hello_Tuto_skel AMI_Hello_Tuto_Hello_Receiver_l_stub\ - AMI_Hello_Tuto_stub\ - AMI_Hello_Tuto_skel AMI_Hello_Tuto_lem_stub - sharedname = Hello_Receiver_comp_svnt - libs += Hello_Receiver_comp_stub Hello_Receiver_comp_lem_stub\ - Hello_MyFoo_obj_skel\ - Hello_MyFoo_obj_stub Hello_MyFoo_obj_lem_stub - libpaths += ../../lib - libout = ../../lib - dynamicflags += HELLO_RECEIVER_COMP_SVNT_BUILD_DLL - includes += ../.. ../../GeneratedCode - - IDL_Files { - } - - Source_Files { - ../../GeneratedCode/Hello_Receiver_compS.cpp - ../../GeneratedCode/Hello_Receiver_comp_svnt.cpp - } - - Header_Files { - ../../GeneratedCode/Hello_Receiver_compS.h - ../../GeneratedCode/Hello_Receiver_comp_svnt.h - ../../GeneratedCode/Hello_Receiver_comp_svnt_export.h - } - - Inline_Files { - } -} diff --git a/CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp/src/Hello_Receiver_comp_exec.cpp b/CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp/src/Hello_Receiver_comp_exec.cpp deleted file mode 100644 index 303697cae44..00000000000 --- a/CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp/src/Hello_Receiver_comp_exec.cpp +++ /dev/null @@ -1,181 +0,0 @@ -// -*- C++ -*- -/** - * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.2 - * TAO and the TAO IDL Compiler have been developed by: - * Center for Distributed Object Computing - * Washington University - * St. Louis, MO - * USA - * http://www.cs.wustl.edu/~schmidt/doc-center.html - * and - * Distributed Object Computing Laboratory - * University of California at Irvine - * Irvine, CA - * USA - * and - * Institute for Software Integrated Systems - * Vanderbilt University - * Nashville, TN - * USA - * http://www.isis.vanderbilt.edu/ - * - * Information about TAO is available at: - * http://www.dre.vanderbilt.edu/~schmidt/TAO.html - **/ - -#include "Hello_Receiver_comp_exec.h" -#include "ace/OS_NS_unistd.h" - -namespace CIAO_Hello_Receiver_comp_Impl -{ - - //============================================================ - // Facet Executor Implementation Class: do_my_foo_exec_i - //============================================================ - - do_my_foo_exec_i::do_my_foo_exec_i ( - ::Hello::CCM_Receiver_comp_Context_ptr ctx) - : ciao_context_ ( - ::Hello::CCM_Receiver_comp_Context::_duplicate (ctx)) - { - } - - do_my_foo_exec_i::~do_my_foo_exec_i (void) - { - } - - // Operations from ::Hello::MyFoo_obj - - ::CORBA::Long - do_my_foo_exec_i::foo (const char * in_str, - ::CORBA::String_out answer) - { - // for test purposes : throw an exception. - if (ACE_OS::strlen (in_str) == 0) - { - Hello::InternalError ex (42, "Hello world"); - throw ex; - } - else - { - ACE_OS::sleep (ACE_OS::rand () % 2); - answer = CORBA::string_dup ("This is my answer : Hi"); - return ACE_OS::rand () % 100; - } - } - - void - do_my_foo_exec_i::hello (::CORBA::Long_out answer) - { - /* Your code here. */ - ACE_OS::sleep (ACE_OS::rand () % 2); - answer = ACE_OS::rand () % 100; - } - - ::CORBA::Short - do_my_foo_exec_i::rw_attrib (void) - { - /* Your code here. */ - return ACE_OS::rand () % 100; - } - - void - do_my_foo_exec_i::rw_attrib (::CORBA::Short /* rw_attrib */) - { - /* Your code here. */ - } - - ::CORBA::Short - do_my_foo_exec_i::ro_attrib (void) - { - /* Your code here. */ - return ACE_OS::rand () % 100; - } - - //============================================================ - // Component Executor Implementation Class: Receiver_comp_exec_i - //============================================================ - - Receiver_comp_exec_i::Receiver_comp_exec_i (void){ - } - - Receiver_comp_exec_i::~Receiver_comp_exec_i (void) - { - } - - // Supported operations and attributes. - - // Component attributes and port operations. - - ::Hello::CCM_MyFoo_obj_ptr - Receiver_comp_exec_i::get_do_my_foo (void) - { - if ( ::CORBA::is_nil (this->ciao_do_my_foo_.in ())) - { - do_my_foo_exec_i *tmp = 0; - ACE_NEW_RETURN ( - tmp, - do_my_foo_exec_i ( - this->ciao_context_.in ()), - ::Hello::CCM_MyFoo_obj::_nil ()); - - this->ciao_do_my_foo_ = tmp; - } - - return - ::Hello::CCM_MyFoo_obj::_duplicate ( - this->ciao_do_my_foo_.in ()); - } - - // Operations from Components::SessionComponent. - - void - Receiver_comp_exec_i::set_session_context ( - ::Components::SessionContext_ptr ctx) - { - this->ciao_context_ = - ::Hello::CCM_Receiver_comp_Context::_narrow (ctx); - - if ( ::CORBA::is_nil (this->ciao_context_.in ())) - { - throw ::CORBA::INTERNAL (); - } - } - - void - Receiver_comp_exec_i::configuration_complete (void) - { - /* Your code here. */ - } - - void - Receiver_comp_exec_i::ccm_activate (void) - { - /* Your code here. */ - } - - void - Receiver_comp_exec_i::ccm_passivate (void) - { - /* Your code here. */ - } - - void - Receiver_comp_exec_i::ccm_remove (void) - { - /* Your code here. */ - } - - extern "C" ::Components::EnterpriseComponent_ptr - create_Hello_Receiver_comp_Impl (void) - { - ::Components::EnterpriseComponent_ptr retval = - ::Components::EnterpriseComponent::_nil (); - - ACE_NEW_NORETURN ( - retval, - Receiver_comp_exec_i); - - return retval; - } -} diff --git a/CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp/src/Hello_Receiver_comp_exec.h b/CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp/src/Hello_Receiver_comp_exec.h deleted file mode 100644 index 49292bc1852..00000000000 --- a/CIAO/connectors/ami4ccm/tutorials/Hello/Hello_asm/Receiver_comp/src/Hello_Receiver_comp_exec.h +++ /dev/null @@ -1,126 +0,0 @@ -// -*- C++ -*- -/** - * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.2 - * TAO and the TAO IDL Compiler have been developed by: - * Center for Distributed Object Computing - * Washington University - * St. Louis, MO - * USA - * http://www.cs.wustl.edu/~schmidt/doc-center.html - * and - * Distributed Object Computing Laboratory - * University of California at Irvine - * Irvine, CA - * USA - * and - * Institute for Software Integrated Systems - * Vanderbilt University - * Nashville, TN - * USA - * http://www.isis.vanderbilt.edu/ - * - * Information about TAO is available at: - * http://www.dre.vanderbilt.edu/~schmidt/TAO.html - **/ -#ifndef CIAO__________TUTORIAL_CODE_GENERATEDEXEC_HELLO_RECEIVER_COMP_EXEC_IHOFDC_H_ -#define CIAO__________TUTORIAL_CODE_GENERATEDEXEC_HELLO_RECEIVER_COMP_EXEC_IHOFDC_H_ - -#include /**/ "ace/pre.h" - -#include "Hello_Receiver_compEC.h" -#include "Hello_Receiver_comp_exec_export.h" - - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "tao/LocalObject.h" - -namespace CIAO_Hello_Receiver_comp_Impl -{ - - //============================================================ - // Provider Executor Implementation Class: do_my_foo_exec_i - //============================================================ - - class do_my_foo_exec_i - : public virtual ::Hello::CCM_MyFoo_obj, - public virtual ::CORBA::LocalObject - { - public: - do_my_foo_exec_i ( - ::Hello::CCM_Receiver_comp_Context_ptr ctx); - virtual ~do_my_foo_exec_i (void); - - // Operations and attributes from Hello::MyFoo_obj - - virtual - ::CORBA::Long foo (const char * in_str, - ::CORBA::String_out answer); - - virtual - void hello (::CORBA::Long_out answer); - - virtual ::CORBA::Short rw_attrib (void); - - virtual void rw_attrib (::CORBA::Short rw_attrib); - - virtual ::CORBA::Short ro_attrib (void); - - private: - ::Hello::CCM_Receiver_comp_Context_var ciao_context_; - }; - - //============================================================ - // Component Executor Implementation Class: Receiver_comp_exec_i - //============================================================ - - class Receiver_comp_exec_i - : public virtual Receiver_comp_Exec, - public virtual ::CORBA::LocalObject - { - public: - Receiver_comp_exec_i (void); - virtual ~Receiver_comp_exec_i (void); - - //@{ - /** Supported operations and attributes. */ - - //@} - - //@{ - /** Component attributes and port operations. */ - - virtual ::Hello::CCM_MyFoo_obj_ptr - get_do_my_foo (void);//@} - - //@{ - /** Operations from Components::SessionComponent. */ - - virtual void set_session_context (::Components::SessionContext_ptr ctx); - - virtual void configuration_complete (void); - - virtual void ccm_activate (void); - virtual void ccm_passivate (void); - virtual void ccm_remove (void); - //@} - - //@{ - /** User defined operations */ - - //@} - - private: - ::Hello::CCM_Receiver_comp_Context_var ciao_context_; - ::Hello::CCM_MyFoo_obj_var ciao_do_my_foo_; - }; - - extern "C" HELLO_RECEIVER_COMP_EXEC_Export ::Components::EnterpriseComponent_ptr - create_Hello_Receiver_comp_Impl (void); -} - -#include /**/ "ace/post.h" - -#endif /* ifndef */ |