summaryrefslogtreecommitdiff
path: root/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver')
-rw-r--r--CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver.idl16
-rw-r--r--CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver.mpc132
-rw-r--r--CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver_exec.cpp169
-rw-r--r--CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver_exec.h133
4 files changed, 0 insertions, 450 deletions
diff --git a/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver.idl b/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver.idl
deleted file mode 100644
index efd4c52c819..00000000000
--- a/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver.idl
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef THREECOMP_RECEIVER_IDL
-#define THREECOMP_RECEIVER_IDL
-
-#include <Components.idl>
-
-#include "Base/ThreeComp.idl"
-
-module ThreeComp
-{
- component Receiver
- {
- /// Provides
- provides MyFoo do_my_foo;
- };
-};
-#endif
diff --git a/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver.mpc b/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver.mpc
deleted file mode 100644
index 010c2e09ad1..00000000000
--- a/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver.mpc
+++ /dev/null
@@ -1,132 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p ThreeComp_Base ThreeComp_Receiver"
-
-project(AMI_ThreeComp_Base_Receiver_idl_gen) : componentidldefaults {
- custom_only = 1
- after += AMI_ThreeComp_idl_gen
- idlflags += -Wb,stub_export_macro=THREECOMP_RECEIVER_STUB_Export \
- -Wb,stub_export_include=ThreeComp_Receiver_stub_export.h \
- -Wb,skel_export_macro=THREECOMP_RECEIVER_SVNT_Export \
- -Wb,skel_export_include=ThreeComp_Receiver_svnt_export.h \
- -Wb,exec_export_macro=THREECOMP_RECEIVER_EXEC_Export \
- -Wb,exec_export_include=ThreeComp_Receiver_exec_export.h \
- -Glem -I..
-
- IDL_Files {
- ThreeComp_Receiver.idl
- }
-}
-
-project(AMI_ThreeComp_Base_Receiver_lem_gen) : ciaoidldefaults {
- after += AMI_ThreeComp_Base_Receiver_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=THREECOMP_RECEIVER_LEM_STUB_Export \
- -Wb,stub_export_include=ThreeComp_Receiver_lem_stub_export.h \
- -SS -Gxhst -I..
-
- IDL_Files {
- ThreeComp_ReceiverE.idl
- }
-}
-
-project(AMI_ThreeComp_Base_Receiver_l_stub) : ccm_svnt, messaging {
- after += AMI_ThreeComp_Base_Receiver_lem_gen AMI_ThreeComp_Base_Receiver_stub AMI_ThreeComp_stub
- libs += ThreeComp_stub ThreeComp_Receiver_stub
- libpaths += ../lib
- libout = ../lib
- sharedname = ThreeComp_Receiver_lem_stub
- dynamicflags += THREECOMP_RECEIVER_LEM_STUB_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- ThreeComp_ReceiverEC.cpp
- }
-
- Header_Files {
- ThreeComp_ReceiverEC.h
- ThreeComp_Receiver_lem_stub_export.h
- }
-
- Inline_Files {
- ThreeComp_ReceiverEC.inl
- }
-}
-
-project(AMI_ThreeComp_Base_Receiver_stub) : ccm_stub, messaging {
- after += AMI_ThreeComp_Base_Receiver_idl_gen AMI_ThreeComp_stub
- libs += ThreeComp_stub
- libpaths += ../lib
- libout = ../lib
- sharedname = ThreeComp_Receiver_stub
- dynamicflags += THREECOMP_RECEIVER_STUB_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- ThreeComp_ReceiverC.cpp
- }
-
- Header_Files {
- ThreeComp_ReceiverC.h
- ThreeComp_Receiver_stub_export.h
- }
-
- Inline_Files {
- ThreeComp_ReceiverC.inl
- }
-}
-
-project(AMI_ThreeComp_Base_Receiver_exec) : ciao_executor, messaging {
- after += AMI_ThreeComp_Base_Receiver_l_stub AMI_ThreeComp_Base_Receiver_stub AMI_ThreeComp_stub AMI_ThreeComp_lem_stub
- sharedname = ThreeComp_Receiver_exec
- libs += ThreeComp_Receiver_stub ThreeComp_Receiver_lem_stub ThreeComp_stub ThreeComp_lem_stub
- libpaths += ../lib
- libout = ../lib
- dynamicflags += THREECOMP_RECEIVER_EXEC_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- ThreeComp_Receiver_exec.cpp
- }
-
- Header_Files {
- ThreeComp_Receiver_exec.h
- ThreeComp_Receiver_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-project(AMI_ThreeComp_Base_Receiver_svnt) : ciao_servant, messaging {
- after += AMI_ThreeComp_Base_skel AMI_ThreeComp_Base_Receiver_l_stub AMI_ThreeComp_stub AMI_ThreeComp_skel AMI_ThreeComp_lem_stub
- sharedname = ThreeComp_Receiver_svnt
- libs += ThreeComp_Receiver_stub ThreeComp_Receiver_lem_stub \
- ThreeComp_skel \
- ThreeComp_stub ThreeComp_lem_stub
- libpaths += ../lib
- libout = ../lib
- dynamicflags += THREECOMP_RECEIVER_SVNT_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- ThreeComp_ReceiverS.cpp
- ThreeComp_Receiver_svnt.cpp
- }
-
- Header_Files {
- ThreeComp_ReceiverS.h
- ThreeComp_Receiver_svnt.h
- ThreeComp_Receiver_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver_exec.cpp b/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver_exec.cpp
deleted file mode 100644
index 654a57ecd3e..00000000000
--- a/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver_exec.cpp
+++ /dev/null
@@ -1,169 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * 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 "ThreeComp_Receiver_exec.h"
-#include "ace/OS_NS_unistd.h"
-
-namespace CIAO_ThreeComp_Receiver_Impl
-{
-
- /**
- * Facet Executor Implementation Class: do_my_foo_exec_i
- */
-
- do_my_foo_exec_i::do_my_foo_exec_i (
- ::ThreeComp::CCM_Receiver_Context_ptr ctx,
- Atomic_UShort &nr_of_received)
- : ciao_context_ (
- ::ThreeComp::CCM_Receiver_Context::_duplicate (ctx)),
- nr_of_received_(nr_of_received)
- {
- }
-
- do_my_foo_exec_i::~do_my_foo_exec_i (void)
- {
- }
-
- // Operations from ::ThreeComp::MyFoo
-
- ::CORBA::Long
- do_my_foo_exec_i::foo (::CORBA::Long cmd,
- ::CORBA::String_out answer)
- {
- ACE_OS::sleep(2);
- CORBA::Long ret = 0;
- ++nr_of_received_;
- if (cmd == 10)
- {
- ret = 1;
- }
- if (cmd == 20)
- {
- ret = 2;
- }
- answer = CORBA::string_dup ("Hi from receiver.");
- return ret; }
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- Receiver_exec_i::Receiver_exec_i (void)
- :nr_of_received_(0)
- {
- }
-
- Receiver_exec_i::~Receiver_exec_i (void)
- {
- }
-
- // Supported operations and attributes.
-
- // Component attributes and port operations.
-
- ::ThreeComp::CCM_MyFoo_ptr
- Receiver_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 (),
- this->nr_of_received_),
- ::ThreeComp::CCM_MyFoo::_nil ());
-
- this->ciao_do_my_foo_ = tmp;
- }
-
- return
- ::ThreeComp::CCM_MyFoo::_duplicate (
- this->ciao_do_my_foo_.in ());
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Receiver_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::ThreeComp::CCM_Receiver_Context::_narrow (ctx);
-
- if ( ::CORBA::is_nil (this->ciao_context_.in ()))
- {
- throw ::CORBA::INTERNAL ();
- }
- }
-
- void
- Receiver_exec_i::configuration_complete (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_activate (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_remove (void)
- {
- // each Receiver has to receive 2 requests.
- if (nr_of_received_.value() != 2)
- {
- ACE_ERROR ((LM_ERROR,
- "ERROR: Receiver received wrong number of messages"
- " ( %u/2)!\n",
- nr_of_received_.value() ));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "OK: This Receiver works as expected.\n"));
- }
- }
-
- extern "C" THREECOMP_RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_ThreeComp_Receiver_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Receiver_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver_exec.h b/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver_exec.h
deleted file mode 100644
index 28d09505f7b..00000000000
--- a/CIAO/connectors/ami4ccm/tests/ThreeComp/Receiver/ThreeComp_Receiver_exec.h
+++ /dev/null
@@ -1,133 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * 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_THREECOMP_RECEIVER_EXEC_I1LVQG_H_
-#define CIAO_THREECOMP_RECEIVER_EXEC_I1LVQG_H_
-
-#include /**/ "ace/pre.h"
-
-#include "ThreeComp_ReceiverEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "ThreeComp_Receiver_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO_ThreeComp_Receiver_Impl
-{
- typedef ACE_Atomic_Op <TAO_SYNCH_MUTEX, CORBA::UShort > Atomic_UShort;
-
- /**
- * Provider Executor Implementation Class: do_my_foo_exec_i
- */
-
- class do_my_foo_exec_i
- : public virtual ::ThreeComp::CCM_MyFoo,
- public virtual ::CORBA::LocalObject
- {
- public:
- do_my_foo_exec_i (
- ::ThreeComp::CCM_Receiver_Context_ptr ctx,
- Atomic_UShort &nr_of_received);
- virtual ~do_my_foo_exec_i (void);
-
- //@{
- /** Operations and attributes from ThreeComp::MyFoo. */
-
- virtual
- ::CORBA::Long foo (::CORBA::Long cmd,
- ::CORBA::String_out answer);
- //@}
-
- private:
- ::ThreeComp::CCM_Receiver_Context_var ciao_context_;
- Atomic_UShort &nr_of_received_;
- };
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- class Receiver_exec_i
- : public virtual Receiver_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Receiver_exec_i (void);
- virtual ~Receiver_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
-
- virtual ::ThreeComp::CCM_MyFoo_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 public operations. */
-
- //@}
-
- private:
- ::ThreeComp::CCM_Receiver_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::ThreeComp::CCM_MyFoo_var ciao_do_my_foo_;
- //@}
-
- //@{
- /** User defined members. */
- Atomic_UShort nr_of_received_;
- //@}
-
- //@{
- /** User defined private operations. */
-
- //@}
- };
-
- extern "C" THREECOMP_RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_ThreeComp_Receiver_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */