diff options
Diffstat (limited to 'CIAO/examples/Null_Component')
32 files changed, 2090 insertions, 0 deletions
diff --git a/CIAO/examples/Null_Component/Null_Component.cidl b/CIAO/examples/Null_Component/Null_Component.cidl new file mode 100644 index 00000000000..85c4d2188c3 --- /dev/null +++ b/CIAO/examples/Null_Component/Null_Component.cidl @@ -0,0 +1,21 @@ +/** + * @file Null_Component.cidl + * + * @author Abdul Sowayan <abdullah.sowayan@lmco.com> + */ + +#ifndef NULL_COMPONENT_CIDL +#define NULL_COMPONENT_CIDL + +#include "Null_Component.idl" + +composition session Null_Component_Impl +{ + home executor Null_Component_Home_Exec + { + implements Null_Component_Home; + manages Null_Component_Exec; + }; +}; + +#endif /* NULL_COMPONENT_CIDL */ diff --git a/CIAO/examples/Null_Component/Null_Component.idl b/CIAO/examples/Null_Component/Null_Component.idl new file mode 100644 index 00000000000..26df429a13b --- /dev/null +++ b/CIAO/examples/Null_Component/Null_Component.idl @@ -0,0 +1,38 @@ +/** + * @file Null_Component.idl + * + * @author Abdul Sowayan <abdullah.sowayan@lmco.com> + * + * $Id$ + */ + +#ifndef NULL_COMPONENT_IDL +#define NULL_COMPONENT_IDL + +#include <Components.idl> +#include "Null_Interface.idl" + + +/** + * @class Null_Component + * + * This component is intentionally left blank. Its purpose + * is to measure the footprint of a component in CIAO. + */ +component Null_Component +{ + provides Null_Interface null_facet; +}; + +/** + * @class Null_Component_Home + * + * @brief home for Null_Component + */ +home Null_Component_Home manages Null_Component +{ +}; + +#endif /* NULL_COMPONENT_IDL */ + + diff --git a/CIAO/examples/Null_Component/Null_Component.mpc b/CIAO/examples/Null_Component/Null_Component.mpc new file mode 100644 index 00000000000..b639ceb0828 --- /dev/null +++ b/CIAO/examples/Null_Component/Null_Component.mpc @@ -0,0 +1,73 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -p Null_Interface Null_Component" + +project(Null_Interface_Null_Component_stub): ciao_client_dnc { + after += Null_Interface_stub + sharedname = Null_Component_stub + libs += Null_Interface_stub + idlflags += -Wb,stub_export_macro=NULL_COMPONENT_STUB_Export \ + -Wb,stub_export_include=Null_Component_stub_export.h \ + -Wb,skel_export_macro=NULL_COMPONENT_SVNT_Export \ + -Wb,skel_export_include=Null_Component_svnt_export.h + dynamicflags = NULL_COMPONENT_STUB_BUILD_DLL + + IDL_Files { + Null_Component.idl + } + + Source_Files { + Null_ComponentC.cpp + } +} + +project(Null_Interface_Null_Component_svnt) : ciao_servant_dnc { + after += Null_Interface_skel Null_Interface_Null_Component_stub + sharedname = Null_Component_svnt + libs += Null_Component_stub \ + Null_Interface_stub \ + Null_Interface_skel + + idlflags += -Wb,export_macro=NULL_COMPONENT_SVNT_Export \ + -Wb,export_include=Null_Component_svnt_export.h + dynamicflags = NULL_COMPONENT_SVNT_BUILD_DLL + + CIDL_Files { + Null_Component.cidl + } + + IDL_Files { + Null_ComponentE.idl + } + + Source_Files { + Null_ComponentEC.cpp + Null_ComponentS.cpp + Null_Component_svnt.cpp + } +} + + +project(Null_Interface_Null_Component_exec) : ciao_component_dnc { + after += Null_Interface_Null_Component_svnt + sharedname = Null_Component_exec + libs += Null_Component_stub \ + Null_Component_svnt \ + Null_Interface_stub \ + Null_Interface_skel + + idlflags += -Wb,export_macro=NULL_COMPONENT_EXEC_Export \ + -Wb,export_include=Null_Component_exec_export.h + dynamicflags = NULL_COMPONENT_EXEC_BUILD_DLL + + IDL_Files { + + } + + Source_Files { + + Null_Component_exec.cpp + } +} + + + diff --git a/CIAO/examples/Null_Component/Null_Component_exec.cpp b/CIAO/examples/Null_Component/Null_Component_exec.cpp new file mode 100644 index 00000000000..77a5577e8d5 --- /dev/null +++ b/CIAO/examples/Null_Component/Null_Component_exec.cpp @@ -0,0 +1,167 @@ +// $Id$ +// +// **** Code generated by the **** +// **** Component Integrated ACE ORB (CIAO) CIDL Compiler **** +// CIAO has been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// CIDL Compiler has been developed by: +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about CIAO is available at: +// http://www.dre.vanderbilt.edu/CIAO + +#include "Null_Component_exec.h" +#include "ciao/CIAO_common.h" + +namespace CIDL_Null_Component_Impl +{ + //================================================================== + // Facet Executor Implementation Class: Null_Interface_exec_i + //================================================================== + + Null_Interface_exec_i::Null_Interface_exec_i (void) + { + } + + Null_Interface_exec_i::~Null_Interface_exec_i (void) + { + } + + // Operations from ::Null_Interface + + void + Null_Interface_exec_i::null_operation () + { + // Your code here. + } + + //================================================================== + // Component Executor Implementation Class: Null_Component_exec_i + //================================================================== + + Null_Component_exec_i::Null_Component_exec_i (void) + { + } + + Null_Component_exec_i::~Null_Component_exec_i (void) + { + } + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + ::CCM_Null_Interface_ptr + Null_Component_exec_i::get_null_facet () + { + // Your code here. + return ::CCM_Null_Interface::_nil (); + } + + // Operations from Components::SessionComponent + + void + Null_Component_exec_i::set_session_context ( + ::Components::SessionContext_ptr ctx) + { + this->context_ = + Null_Component_Context::_narrow ( + ctx); + + if (this->context_ == 0) + { + throw ::CORBA::INTERNAL (); + } + } + + void + Null_Component_exec_i::ciao_preactivate () + { + // Your code here. + } + + void + Null_Component_exec_i::ciao_postactivate () + { + // Your code here. + } + + void + Null_Component_exec_i::ccm_activate () + { + // Your code here. + } + + void + Null_Component_exec_i::ccm_passivate () + { + // Your code here. + } + + void + Null_Component_exec_i::ccm_remove () + { + // Your code here. + } + + //================================================================== + // Home Executor Implementation Class: Null_Component_Home_exec_i + //================================================================== + + Null_Component_Home_exec_i::Null_Component_Home_exec_i (void) + { + } + + Null_Component_Home_exec_i::~Null_Component_Home_exec_i (void) + { + } + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + ::Components::EnterpriseComponent_ptr + Null_Component_Home_exec_i::create () + { + ::Components::EnterpriseComponent_ptr retval = + ::Components::EnterpriseComponent::_nil (); + + ACE_NEW_THROW_EX ( + retval, + Null_Component_exec_i, + ::CORBA::NO_MEMORY ()); + + return retval; + } + + extern "C" NULL_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_Null_Component_Home_Impl (void) + { + ::Components::HomeExecutorBase_ptr retval = + ::Components::HomeExecutorBase::_nil (); + + ACE_NEW_RETURN ( + retval, + Null_Component_Home_exec_i, + ::Components::HomeExecutorBase::_nil ()); + + return retval; + } +} + diff --git a/CIAO/examples/Null_Component/Null_Component_exec.h b/CIAO/examples/Null_Component/Null_Component_exec.h new file mode 100644 index 00000000000..254dc890eda --- /dev/null +++ b/CIAO/examples/Null_Component/Null_Component_exec.h @@ -0,0 +1,122 @@ +// $Id$ +// +// **** Code generated by the **** +// **** Component Integrated ACE ORB (CIAO) CIDL Compiler **** +// CIAO has been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// CIDL Compiler has been developed by: +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about CIAO is available at: +// http://www.dre.vanderbilt.edu/CIAO + +#ifndef CIAO_NULL_COMPONENT_EXEC_H +#define CIAO_NULL_COMPONENT_EXEC_H + +#include /**/ "ace/pre.h" + +#include "Null_Component_svnt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "Null_Component_exec_export.h" +#include "tao/LocalObject.h" + +namespace CIDL_Null_Component_Impl +{ + class NULL_COMPONENT_EXEC_Export Null_Interface_exec_i + : public virtual ::CCM_Null_Interface, + public virtual TAO_Local_RefCounted_Object + { + public: + Null_Interface_exec_i (void); + virtual ~Null_Interface_exec_i (void); + + // Operations from ::Null_Interface + + virtual void + null_operation (); + }; + + class NULL_COMPONENT_EXEC_Export Null_Component_exec_i + : public virtual Null_Component_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Null_Component_exec_i (void); + virtual ~Null_Component_exec_i (void); + + // Supported or inherited operations. + + // Attribute operations. + + // Port operations. + + virtual ::CCM_Null_Interface_ptr + get_null_facet (); + + // Operations from Components::SessionComponent + + virtual void + set_session_context ( + ::Components::SessionContext_ptr ctx); + + virtual void + ciao_preactivate (); + + virtual void + ciao_postactivate (); + + virtual void + ccm_activate (); + + virtual void + ccm_passivate (); + + virtual void + ccm_remove (); + + protected: + Null_Component_Context *context_; + }; + + class NULL_COMPONENT_EXEC_Export Null_Component_Home_exec_i + : public virtual Null_Component_Home_Exec, + public virtual TAO_Local_RefCounted_Object + { + public: + Null_Component_Home_exec_i (void); + virtual ~Null_Component_Home_exec_i (void); + + // Supported or inherited operations. + + // Home operations. + + // Factory and finder operations. + + // Attribute operations. + + // Implicit operations. + + virtual ::Components::EnterpriseComponent_ptr + create (); + }; + + extern "C" NULL_COMPONENT_EXEC_Export ::Components::HomeExecutorBase_ptr + create_Null_Component_Home_Impl (void); +} + +#include /**/ "ace/post.h" + +#endif /* CIAO_NULL_COMPONENT_EXEC_H */ + diff --git a/CIAO/examples/Null_Component/Null_Component_exec_export.h b/CIAO/examples/Null_Component/Null_Component_exec_export.h new file mode 100644 index 00000000000..d5157f448fe --- /dev/null +++ b/CIAO/examples/Null_Component/Null_Component_exec_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl NULL_COMPONENT_EXEC +// ------------------------------ +#ifndef NULL_COMPONENT_EXEC_EXPORT_H +#define NULL_COMPONENT_EXEC_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (NULL_COMPONENT_EXEC_HAS_DLL) +# define NULL_COMPONENT_EXEC_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && NULL_COMPONENT_EXEC_HAS_DLL */ + +#if !defined (NULL_COMPONENT_EXEC_HAS_DLL) +# define NULL_COMPONENT_EXEC_HAS_DLL 1 +#endif /* ! NULL_COMPONENT_EXEC_HAS_DLL */ + +#if defined (NULL_COMPONENT_EXEC_HAS_DLL) && (NULL_COMPONENT_EXEC_HAS_DLL == 1) +# if defined (NULL_COMPONENT_EXEC_BUILD_DLL) +# define NULL_COMPONENT_EXEC_Export ACE_Proper_Export_Flag +# define NULL_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define NULL_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* NULL_COMPONENT_EXEC_BUILD_DLL */ +# define NULL_COMPONENT_EXEC_Export ACE_Proper_Import_Flag +# define NULL_COMPONENT_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define NULL_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* NULL_COMPONENT_EXEC_BUILD_DLL */ +#else /* NULL_COMPONENT_EXEC_HAS_DLL == 1 */ +# define NULL_COMPONENT_EXEC_Export +# define NULL_COMPONENT_EXEC_SINGLETON_DECLARATION(T) +# define NULL_COMPONENT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* NULL_COMPONENT_EXEC_HAS_DLL == 1 */ + +// Set NULL_COMPONENT_EXEC_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (NULL_COMPONENT_EXEC_NTRACE) +# if (ACE_NTRACE == 1) +# define NULL_COMPONENT_EXEC_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define NULL_COMPONENT_EXEC_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !NULL_COMPONENT_EXEC_NTRACE */ + +#if (NULL_COMPONENT_EXEC_NTRACE == 1) +# define NULL_COMPONENT_EXEC_TRACE(X) +#else /* (NULL_COMPONENT_EXEC_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define NULL_COMPONENT_EXEC_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (NULL_COMPONENT_EXEC_NTRACE == 1) */ + +#endif /* NULL_COMPONENT_EXEC_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/Null_Component/Null_Component_stub_export.h b/CIAO/examples/Null_Component/Null_Component_stub_export.h new file mode 100644 index 00000000000..a8017fc235f --- /dev/null +++ b/CIAO/examples/Null_Component/Null_Component_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl NULL_COMPONENT_STUB +// ------------------------------ +#ifndef NULL_COMPONENT_STUB_EXPORT_H +#define NULL_COMPONENT_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (NULL_COMPONENT_STUB_HAS_DLL) +# define NULL_COMPONENT_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && NULL_COMPONENT_STUB_HAS_DLL */ + +#if !defined (NULL_COMPONENT_STUB_HAS_DLL) +# define NULL_COMPONENT_STUB_HAS_DLL 1 +#endif /* ! NULL_COMPONENT_STUB_HAS_DLL */ + +#if defined (NULL_COMPONENT_STUB_HAS_DLL) && (NULL_COMPONENT_STUB_HAS_DLL == 1) +# if defined (NULL_COMPONENT_STUB_BUILD_DLL) +# define NULL_COMPONENT_STUB_Export ACE_Proper_Export_Flag +# define NULL_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define NULL_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* NULL_COMPONENT_STUB_BUILD_DLL */ +# define NULL_COMPONENT_STUB_Export ACE_Proper_Import_Flag +# define NULL_COMPONENT_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define NULL_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* NULL_COMPONENT_STUB_BUILD_DLL */ +#else /* NULL_COMPONENT_STUB_HAS_DLL == 1 */ +# define NULL_COMPONENT_STUB_Export +# define NULL_COMPONENT_STUB_SINGLETON_DECLARATION(T) +# define NULL_COMPONENT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* NULL_COMPONENT_STUB_HAS_DLL == 1 */ + +// Set NULL_COMPONENT_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (NULL_COMPONENT_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define NULL_COMPONENT_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define NULL_COMPONENT_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !NULL_COMPONENT_STUB_NTRACE */ + +#if (NULL_COMPONENT_STUB_NTRACE == 1) +# define NULL_COMPONENT_STUB_TRACE(X) +#else /* (NULL_COMPONENT_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define NULL_COMPONENT_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (NULL_COMPONENT_STUB_NTRACE == 1) */ + +#endif /* NULL_COMPONENT_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/Null_Component/Null_Component_svnt_export.h b/CIAO/examples/Null_Component/Null_Component_svnt_export.h new file mode 100644 index 00000000000..14d8bb8c3b1 --- /dev/null +++ b/CIAO/examples/Null_Component/Null_Component_svnt_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl NULL_COMPONENT_SVNT +// ------------------------------ +#ifndef NULL_COMPONENT_SVNT_EXPORT_H +#define NULL_COMPONENT_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (NULL_COMPONENT_SVNT_HAS_DLL) +# define NULL_COMPONENT_SVNT_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && NULL_COMPONENT_SVNT_HAS_DLL */ + +#if !defined (NULL_COMPONENT_SVNT_HAS_DLL) +# define NULL_COMPONENT_SVNT_HAS_DLL 1 +#endif /* ! NULL_COMPONENT_SVNT_HAS_DLL */ + +#if defined (NULL_COMPONENT_SVNT_HAS_DLL) && (NULL_COMPONENT_SVNT_HAS_DLL == 1) +# if defined (NULL_COMPONENT_SVNT_BUILD_DLL) +# define NULL_COMPONENT_SVNT_Export ACE_Proper_Export_Flag +# define NULL_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define NULL_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* NULL_COMPONENT_SVNT_BUILD_DLL */ +# define NULL_COMPONENT_SVNT_Export ACE_Proper_Import_Flag +# define NULL_COMPONENT_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define NULL_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* NULL_COMPONENT_SVNT_BUILD_DLL */ +#else /* NULL_COMPONENT_SVNT_HAS_DLL == 1 */ +# define NULL_COMPONENT_SVNT_Export +# define NULL_COMPONENT_SVNT_SINGLETON_DECLARATION(T) +# define NULL_COMPONENT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* NULL_COMPONENT_SVNT_HAS_DLL == 1 */ + +// Set NULL_COMPONENT_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (NULL_COMPONENT_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define NULL_COMPONENT_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define NULL_COMPONENT_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !NULL_COMPONENT_SVNT_NTRACE */ + +#if (NULL_COMPONENT_SVNT_NTRACE == 1) +# define NULL_COMPONENT_SVNT_TRACE(X) +#else /* (NULL_COMPONENT_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define NULL_COMPONENT_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (NULL_COMPONENT_SVNT_NTRACE == 1) */ + +#endif /* NULL_COMPONENT_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/Null_Component/Null_Interface.idl b/CIAO/examples/Null_Component/Null_Interface.idl new file mode 100644 index 00000000000..ed841b2a921 --- /dev/null +++ b/CIAO/examples/Null_Component/Null_Interface.idl @@ -0,0 +1,22 @@ +/** + * @file Null_Interface.idl + * + * @author Abdul Sowayan <abdullah.sowayan@lmco.com> + * + * $Id$ + */ + +#ifndef NULL_INTERFACE_IDL +#define NULL_INTERFACE_IDL + +/** + * @interface Null_Interface + * + * @brief + */ +interface Null_Interface +{ + void null_operation(); +}; + +#endif /* NULL_INTERFACE_IDL */ diff --git a/CIAO/examples/Null_Component/Null_Interface.mpc b/CIAO/examples/Null_Component/Null_Interface.mpc new file mode 100644 index 00000000000..9e66ae6ea65 --- /dev/null +++ b/CIAO/examples/Null_Component/Null_Interface.mpc @@ -0,0 +1,46 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -n Null_Interface" + +project(Null_Interface_stub): taolib_with_idl { + + sharedname = Null_Interface_stub + idlflags += -St \ + -Wb,stub_export_macro=NULL_INTERFACE_STUB_Export \ + -Wb,stub_export_include=Null_Interface_stub_export.h \ + -Wb,skel_export_macro=NULL_INTERFACE_SKEL_Export \ + -Wb,skel_export_include=Null_Interface_skel_export.h + dynamicflags = NULL_INTERFACE_STUB_BUILD_DLL + + IDL_Files { + Null_Interface.idl + } + + Source_Files { + Null_InterfaceC.cpp + } +} + +project(Null_Interface_skel) : portableserver { + after += Null_Interface_stub + sharedname = Null_Interface_skel + libs += Null_Interface_stub + + idlflags += -St \ + -Wb,stub_export_macro=NULL_INTERFACE_STUB_Export \ + -Wb,stub_export_include=Null_Interface_stub_export.h \ + -Wb,skel_export_macro=NULL_INTERFACE_SKEL_Export \ + -Wb,skel_export_include=Null_Interface_skel_export.h + dynamicflags = NULL_INTERFACE_SKEL_BUILD_DLL + + IDL_Files { + Null_Interface.idl + } + + Source_Files { + Null_InterfaceS.cpp + } +} + + + + diff --git a/CIAO/examples/Null_Component/Null_Interface_skel_export.h b/CIAO/examples/Null_Component/Null_Interface_skel_export.h new file mode 100644 index 00000000000..239c5cf3f6a --- /dev/null +++ b/CIAO/examples/Null_Component/Null_Interface_skel_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl NULL_INTERFACE_SVNT +// ------------------------------ +#ifndef NULL_INTERFACE_SKEL_EXPORT_H +#define NULL_INTERFACE_SKEL_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (NULL_INTERFACE_SKEL_HAS_DLL) +# define NULL_INTERFACE_SKEL_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && NULL_INTERFACE_SKEL_HAS_DLL */ + +#if !defined (NULL_INTERFACE_SKEL_HAS_DLL) +# define NULL_INTERFACE_SKEL_HAS_DLL 1 +#endif /* ! NULL_INTERFACE_SKEL_HAS_DLL */ + +#if defined (NULL_INTERFACE_SKEL_HAS_DLL) && (NULL_INTERFACE_SKEL_HAS_DLL == 1) +# if defined (NULL_INTERFACE_SKEL_BUILD_DLL) +# define NULL_INTERFACE_SKEL_Export ACE_Proper_Export_Flag +# define NULL_INTERFACE_SKEL_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define NULL_INTERFACE_SKEL_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* NULL_INTERFACE_SKEL_BUILD_DLL */ +# define NULL_INTERFACE_SKEL_Export ACE_Proper_Import_Flag +# define NULL_INTERFACE_SKEL_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define NULL_INTERFACE_SKEL_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* NULL_INTERFACE_SKEL_BUILD_DLL */ +#else /* NULL_INTERFACE_SKEL_HAS_DLL == 1 */ +# define NULL_INTERFACE_SKEL_Export +# define NULL_INTERFACE_SKEL_SINGLETON_DECLARATION(T) +# define NULL_INTERFACE_SKEL_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* NULL_INTERFACE_SKEL_HAS_DLL == 1 */ + +// Set NULL_INTERFACE_SKEL_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (NULL_INTERFACE_SKEL_NTRACE) +# if (ACE_NTRACE == 1) +# define NULL_INTERFACE_SKEL_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define NULL_INTERFACE_SKEL_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !NULL_INTERFACE_SKEL_NTRACE */ + +#if (NULL_INTERFACE_SKEL_NTRACE == 1) +# define NULL_INTERFACE_SKEL_TRACE(X) +#else /* (NULL_INTERFACE_SKEL_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define NULL_INTERFACE_SKEL_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (NULL_INTERFACE_SKEL_NTRACE == 1) */ + +#endif /* NULL_INTERFACE_SKEL_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/Null_Component/Null_Interface_stub_export.h b/CIAO/examples/Null_Component/Null_Interface_stub_export.h new file mode 100644 index 00000000000..09ad6ea7925 --- /dev/null +++ b/CIAO/examples/Null_Component/Null_Interface_stub_export.h @@ -0,0 +1,58 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl NULL_INTERFACE_STUB +// ------------------------------ +#ifndef NULL_INTERFACE_STUB_EXPORT_H +#define NULL_INTERFACE_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if defined (ACE_AS_STATIC_LIBS) && !defined (NULL_INTERFACE_STUB_HAS_DLL) +# define NULL_INTERFACE_STUB_HAS_DLL 0 +#endif /* ACE_AS_STATIC_LIBS && NULL_INTERFACE_STUB_HAS_DLL */ + +#if !defined (NULL_INTERFACE_STUB_HAS_DLL) +# define NULL_INTERFACE_STUB_HAS_DLL 1 +#endif /* ! NULL_INTERFACE_STUB_HAS_DLL */ + +#if defined (NULL_INTERFACE_STUB_HAS_DLL) && (NULL_INTERFACE_STUB_HAS_DLL == 1) +# if defined (NULL_INTERFACE_STUB_BUILD_DLL) +# define NULL_INTERFACE_STUB_Export ACE_Proper_Export_Flag +# define NULL_INTERFACE_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define NULL_INTERFACE_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* NULL_INTERFACE_STUB_BUILD_DLL */ +# define NULL_INTERFACE_STUB_Export ACE_Proper_Import_Flag +# define NULL_INTERFACE_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define NULL_INTERFACE_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* NULL_INTERFACE_STUB_BUILD_DLL */ +#else /* NULL_INTERFACE_STUB_HAS_DLL == 1 */ +# define NULL_INTERFACE_STUB_Export +# define NULL_INTERFACE_STUB_SINGLETON_DECLARATION(T) +# define NULL_INTERFACE_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* NULL_INTERFACE_STUB_HAS_DLL == 1 */ + +// Set NULL_INTERFACE_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (NULL_INTERFACE_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define NULL_INTERFACE_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define NULL_INTERFACE_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !NULL_INTERFACE_STUB_NTRACE */ + +#if (NULL_INTERFACE_STUB_NTRACE == 1) +# define NULL_INTERFACE_STUB_TRACE(X) +#else /* (NULL_INTERFACE_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define NULL_INTERFACE_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (NULL_INTERFACE_STUB_NTRACE == 1) */ + +#endif /* NULL_INTERFACE_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/CIAO/examples/Null_Component/StaticDAnCEApp.cpp b/CIAO/examples/Null_Component/StaticDAnCEApp.cpp new file mode 100644 index 00000000000..9f6e4572475 --- /dev/null +++ b/CIAO/examples/Null_Component/StaticDAnCEApp.cpp @@ -0,0 +1,103 @@ +// $Id$ + +#include "Session_Container.h" +#include "NodeManager/NodeManager_Impl.h" +#include "ace/OS_NS_stdio.h" +#include "ace/streams.h" +#include "ace/Get_Opt.h" +#include "tao/IORTable/IORTable.h" +#include "tao/CDR.h" +#include "plan.h" + +int +ACE_TMAIN (int argc, ACE_TCHAR *argv[]) +{ + // Initialize the ORB so that CORBA::Any will work + // + CORBA::ORB_var orb = + CORBA::ORB_init (argc, + argv, + ""); + try + { + // Get reference to Root POA. + CORBA::Object_var obj + = orb->resolve_initial_references ("RootPOA"); + + PortableServer::POA_var poa + = PortableServer::POA::_narrow (obj.in ()); + + // Activate POA manager + PortableServer::POAManager_var mgr + = poa->the_POAManager (); + + mgr->activate (); + + int homes_table_size = + sizeof (homes_table)/sizeof(HomeAttributes); + + CIAO::HOMECREATOR_FUNCPTR_MAP home_creator_fptr_map; + CIAO::HOMESERVANTCREATOR_FUNCPTR_MAP homesvnt_creator_fptr_map; + CIAO::Static_Config_EntryPoints_Maps static_config_entrypoints_maps; + static_config_entrypoints_maps.home_creator_funcptr_map_ = &home_creator_fptr_map; + static_config_entrypoints_maps.home_servant_creator_funcptr_map_ = &homesvnt_creator_fptr_map; + + int i=0; + for (i=0; i<homes_table_size; ++i) + { + home_creator_fptr_map.bind (homes_table[i].executor_entrypt_, + homes_table[i].executor_fptr_); + + homesvnt_creator_fptr_map.bind (homes_table[i].servant_entrypt_, + homes_table[i].servant_fptr_); + } + + CIAO::Static_NodeManager_Impl *static_node_manager_impl; + // Create and install the CIAO Daemon servant + + ACE_DEBUG ((LM_DEBUG, "creating static_node_manager\n")); + + static_node_manager_impl = + new CIAO::Static_NodeManager_Impl("NodeManager", + orb.in (), + poa.in (), + "", //exe location + "", //exe options + 0, //spawn delay + &static_config_entrypoints_maps); + + static_node_manager_impl->init (); + + CORBA::Object_var table_object = + orb->resolve_initial_references ("IORTable"); + + IORTable::Table_var adapter = + IORTable::Table::_narrow (table_object.in ()); + + if (CORBA::is_nil (adapter.in ())) + ACE_ERROR_RETURN ((LM_ERROR, "Nil IORTable\n"), -1); + + CIAO::NodeManagerDaemon_var manager = + static_node_manager_impl->_this (); + + CORBA::String_var str = + orb->object_to_string (manager.in ()); + + adapter->bind ("NodeManager", + str.in ()); + + // Run the main event loop for the ORB. + orb->run (); + + poa->destroy (1, 1); + + orb->destroy (); + } + catch (CORBA::Exception& ex) + { + ex._tao_print_exception ("Caught CORBA Exception: "); + return -1; + } + + return 0; +} diff --git a/CIAO/examples/Null_Component/StaticDAnCEApp.mpc b/CIAO/examples/Null_Component/StaticDAnCEApp.mpc new file mode 100644 index 00000000000..90d141854e4 --- /dev/null +++ b/CIAO/examples/Null_Component/StaticDAnCEApp.mpc @@ -0,0 +1,21 @@ +// -*- MPC -*- +// $Id$ + +project(StaticDAnCEApp *): ciao_static_dnc_app, iortable { + after += Null_Interface_Null_Component_exec + exename = StaticDAnCEApp + + libs += Null_Interface_stub + libs += Null_Interface_skel + libs += Null_Component_stub + libs += Null_Component_svnt + libs += Null_Component_exec + + IDL_Files { + } + + Source_Files { + StaticDAnCEApp.cpp + } +} + diff --git a/CIAO/examples/Null_Component/descriptors/Deployment.xsd b/CIAO/examples/Null_Component/descriptors/Deployment.xsd new file mode 100644 index 00000000000..fd4ffe5bc7d --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/Deployment.xsd @@ -0,0 +1,29 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:Deployment="http://www.omg.org/Deployment" + targetNamespace="http://www.omg.org/Deployment"> + + <xsd:include schemaLocation="Basic_Deployment_Data.xsd"/> + <xsd:include schemaLocation="cpd.xsd"/> + <xsd:include schemaLocation="ccd.xsd"/> + <xsd:include schemaLocation="cdd.xsd"/> + <xsd:include schemaLocation="cdp.xsd"/> + <xsd:include schemaLocation="cid.xsd"/> + <xsd:include schemaLocation="iad.xsd"/> + <xsd:include schemaLocation="pcd.xsd"/> + <xsd:include schemaLocation="toplevel.xsd"/> + + +<!-- Top-level elements. --> + + <xsd:element name="domain" type="Deployment:Domain"/> + <xsd:element name="deploymentPlan" type="Deployment:DeploymentPlan"/> + <xsd:element name="implementationArtifactDescription" type="Deployment:ImplementationArtifactDescription" /> + <xsd:element name="componentInterfaceDescription" type="Deployment:ComponentInterfaceDescription"/> + <xsd:element name="componentImplementationDescription" type="Deployment:ComponentImplementationDescription"/> + <xsd:element name="componentPackageDescription" type="Deployment:ComponentPackageDescription"/> + <xsd:element name="packageConfiguration" type="Deployment:PackageConfiguration"/> + <xsd:element name="topLevelPackageDescription" type="Deployment:TopLevelPackageDescription"/> + +</xsd:schema> diff --git a/CIAO/examples/Null_Component/descriptors/Domain.cdd b/CIAO/examples/Null_Component/descriptors/Domain.cdd new file mode 100644 index 00000000000..a7fd42463fe --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/Domain.cdd @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:Domain xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>_Null_Component_Targets_Domain</UUID> + + <node> + <name>NodeA</name> + </node> + +</Deployment:Domain> diff --git a/CIAO/examples/Null_Component/descriptors/NodeMap.dat b/CIAO/examples/Null_Component/descriptors/NodeMap.dat new file mode 100644 index 00000000000..556433b464e --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/NodeMap.dat @@ -0,0 +1,3 @@ +NodeA corbaloc:iiop:localhost:10000/NodeManager + + diff --git a/CIAO/examples/Null_Component/descriptors/Null_Assembly.cid b/CIAO/examples/Null_Component/descriptors/Null_Assembly.cid new file mode 100644 index 00000000000..6d19c2a050c --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/Null_Assembly.cid @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentImplementationDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>_84CDF595-E42C-43D5-B3FD-C6C6524E068C</UUID> + + <assemblyImpl> + <instance xmi:id="_B4BF176E-0386-49EE-B84F-3F2781F3C7BE"> + <name>Null_Component.ComponentImplementations.Null_Assembly_Container.Null_Assembly.Null_Component</name> + <package href="Null_Component_Package.cpd"/> + </instance> + </assemblyImpl> + +</Deployment:ComponentImplementationDescription> diff --git a/CIAO/examples/Null_Component/descriptors/Null_Assembly_Package.cpd b/CIAO/examples/Null_Component/descriptors/Null_Assembly_Package.cpd new file mode 100644 index 00000000000..0e4b281531a --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/Null_Assembly_Package.cpd @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentPackageDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>_AAC92636-57DD-4503-A616-CF75AD417E99</UUID> + + <implementation> + <name>Null_Assembly</name> + <referencedImplementation href="Null_Assembly.cid"/> + </implementation> + +</Deployment:ComponentPackageDescription> diff --git a/CIAO/examples/Null_Component/descriptors/Null_Component.ccd b/CIAO/examples/Null_Component/descriptors/Null_Component.ccd new file mode 100644 index 00000000000..1553f012e70 --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/Null_Component.ccd @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentInterfaceDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>_FF1F1E30-2916-4A65-96C3-EF29124400A5</UUID> + + <port> + <name>null_facet</name> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <provider>true</provider> + <kind>Facet</kind> + </port> + +</Deployment:ComponentInterfaceDescription> diff --git a/CIAO/examples/Null_Component/descriptors/Null_ComponentMonolithicImpl.cid b/CIAO/examples/Null_Component/descriptors/Null_ComponentMonolithicImpl.cid new file mode 100644 index 00000000000..93393fca1c7 --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/Null_ComponentMonolithicImpl.cid @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentImplementationDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>_7B0A12C6-0490-4449-A8B3-9BF3CCDF58FA</UUID> + + <implements href="Null_Component.ccd"/> + + <monolithicImpl> + <primaryArtifact> + <name>Null_Component_stub</name> + <referencedArtifact href="Null_Component_stub.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>Null_Component_svnt</name> + <referencedArtifact href="Null_Component_svnt.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>Null_Component_exec</name> + <referencedArtifact href="Null_Component_exec.iad"/> + </primaryArtifact> + </monolithicImpl> + + <configProperty> + <name>ComponentIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Null_Component.ior</string> + </value> + </value> + </configProperty> + +</Deployment:ComponentImplementationDescription> diff --git a/CIAO/examples/Null_Component/descriptors/Null_Component_Package.cpd b/CIAO/examples/Null_Component/descriptors/Null_Component_Package.cpd new file mode 100644 index 00000000000..d9f06a4367f --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/Null_Component_Package.cpd @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentPackageDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>_ABA51225-4A40-4B07-B4EB-467AEEA5BFEE</UUID> + + <realizes href="Null_Component.ccd"/> + + <implementation> + <name>Null_ComponentMonolithicImpl</name> + <referencedImplementation href="Null_ComponentMonolithicImpl.cid"/> + </implementation> + +</Deployment:ComponentPackageDescription> diff --git a/CIAO/examples/Null_Component/descriptors/Null_Component_exec.iad b/CIAO/examples/Null_Component/descriptors/Null_Component_exec.iad new file mode 100644 index 00000000000..9a456b15b60 --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/Null_Component_exec.iad @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>_6BECFE2C-84AB-4B4A-B14C-DB8048563368</UUID> + + <location>Null_Component_exec</location> + + <dependsOn> + <name>Null_Component_svnt</name> + <referencedArtifact href="Null_Component_svnt.iad"/> + </dependsOn> + + <dependsOn> + <name>Null_Component_stub</name> + <referencedArtifact href="Null_Component_stub.iad"/> + </dependsOn> + + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Null_Component_Home_Impl</string> + </value> + </value> + </execParameter> + +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/Null_Component/descriptors/Null_Component_stub.iad b/CIAO/examples/Null_Component/descriptors/Null_Component_stub.iad new file mode 100644 index 00000000000..d74f84940fb --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/Null_Component_stub.iad @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>_5249354B-25F0-459E-BC02-5EED8A0122A7</UUID> + + <location>Null_Component_stub</location> + +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/Null_Component/descriptors/Null_Component_svnt.iad b/CIAO/examples/Null_Component/descriptors/Null_Component_svnt.iad new file mode 100644 index 00000000000..c6283a3a52c --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/Null_Component_svnt.iad @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <UUID>_EBFD46AF-1AF1-4646-891C-5FDE9657AD83</UUID> + + <location>Null_Component_svnt</location> + + <dependsOn> + <name>Null_Component_stub</name> + <referencedArtifact href="Null_Component_stub.iad"/> + </dependsOn> + + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Null_Component_Home_Servant</string> + </value> + </value> + </execParameter> + +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/Null_Component/descriptors/PackageConfiguration.pcd b/CIAO/examples/Null_Component/descriptors/PackageConfiguration.pcd new file mode 100644 index 00000000000..0b09dd0c51e --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/PackageConfiguration.pcd @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:PackageConfiguration xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <basePackage href="Null_Assembly_Package.cpd"/> + +</Deployment:PackageConfiguration> diff --git a/CIAO/examples/Null_Component/descriptors/Plan.cdp b/CIAO/examples/Null_Component/descriptors/Plan.cdp new file mode 100644 index 00000000000..903fd30bc44 --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/Plan.cdp @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:deploymentPlan xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <implementation id="Null_Component_ComponentImplementations_Null_ComponentImplementation_Null_ComponentMonolithicImpl"> + <name>Null_Component_ComponentImplementations_Null_ComponentImplementation_Null_ComponentMonolithicImpl</name> + <source/> + <artifact>Null_Component_ImplementationArtifacts_Null_ComponentArtifacts_Null_Component_stub</artifact> + <artifact>Null_Component_ImplementationArtifacts_Null_ComponentArtifacts_Null_Component_svnt</artifact> + <artifact>Null_Component_ImplementationArtifacts_Null_ComponentArtifacts_Null_Component_exec</artifact> + </implementation> + + <instance id="Null_Component_ComponentImplementations_Null_Assembly_Container_Null_Assembly_Null_Component"> + <name>Null_Component_ComponentImplementations_Null_Assembly_Container_Null_Assembly_Null_Component</name> + <node>NodeA</node> + <source/> + <implementation>Null_Component_ComponentImplementations_Null_ComponentImplementation_Null_ComponentMonolithicImpl</implementation> + <configProperty> + <name>ComponentIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>Null_Component.ior</string> + </value> + </value> + </configProperty> + </instance> + + <artifact id="Null_Component_ImplementationArtifacts_Null_ComponentArtifacts_Null_Component_stub"> + <name>Null_Component_ImplementationArtifacts_Null_ComponentArtifacts_Null_Component_stub</name> + <source/> + <node/> + <location>Null_Component_stub</location> + </artifact> + + <artifact id="Null_Component_ImplementationArtifacts_Null_ComponentArtifacts_Null_Component_svnt"> + <name>Null_Component_ImplementationArtifacts_Null_ComponentArtifacts_Null_Component_svnt</name> + <source/> + <node/> + <location>Null_Component_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Null_Component_Home_Servant</string> + </value> + </value> + </execParameter> + </artifact> + + <artifact id="Null_Component_ImplementationArtifacts_Null_ComponentArtifacts_Null_Component_exec"> + <name>Null_Component_ImplementationArtifacts_Null_ComponentArtifacts_Null_Component_exec</name> + <source/> + <node/> + <location>Null_Component_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_Null_Component_Home_Impl</string> + </value> + </value> + </execParameter> + </artifact> + +</Deployment:deploymentPlan> diff --git a/CIAO/examples/Null_Component/descriptors/XMI.xsd b/CIAO/examples/Null_Component/descriptors/XMI.xsd new file mode 100644 index 00000000000..f4adac91934 --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/XMI.xsd @@ -0,0 +1,35 @@ +<?xml version="1.0" ?> +<xsd:schema targetNamespace="http://www.omg.org/XMI" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation='http://www.w3.org/2001/XMLSchema XMLSchema.xsd'> + <xsd:attribute name="id" type="xsd:ID" /> + <xsd:attributeGroup name="IdentityAttribs"> + <xsd:attribute form="qualified" name="label" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="uuid" type="xsd:string" use="optional" /> + </xsd:attributeGroup> + <xsd:attributeGroup name="LinkAttribs"> + <xsd:attribute name="href" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="idref" type="xsd:IDREF" use="optional" /> + </xsd:attributeGroup> + <xsd:attributeGroup name="ObjectAttribs"> + <xsd:attributeGroup ref="xmi:IdentityAttribs" /> + <xsd:attributeGroup ref="xmi:LinkAttribs" /> + <xsd:attribute fixed="2.0" form="qualified" name="version" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="type" type="xsd:QName" use="optional" /> + </xsd:attributeGroup> + <xsd:complexType name="Extension"> + <xsd:choice maxOccurs="unbounded" minOccurs="0"> + <xsd:any processContents="lax" /> + </xsd:choice> + <xsd:attribute ref="xmi:id" /> + <xsd:attributeGroup ref="xmi:ObjectAttribs" /> + <xsd:attribute name="extender" type="xsd:string" use="optional" /> + <xsd:attribute name="extenderID" type="xsd:string" use="optional" /> + </xsd:complexType> + <xsd:element name="Extension" type="xmi:Extension" /> + <xsd:complexType name="Any"> + <xsd:choice maxOccurs="unbounded" minOccurs="0"> + <xsd:any processContents="skip" /> + </xsd:choice> + <xsd:anyAttribute processContents="skip" /> + </xsd:complexType> +</xsd:schema> diff --git a/CIAO/examples/Null_Component/descriptors/package.tpd b/CIAO/examples/Null_Component/descriptors/package.tpd new file mode 100644 index 00000000000..b57255f3618 --- /dev/null +++ b/CIAO/examples/Null_Component/descriptors/package.tpd @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:TopLevelPackageDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <package href="PackageConfiguration.pcd"/> + +</Deployment:TopLevelPackageDescription> diff --git a/CIAO/examples/Null_Component/model/Null_Component.mga b/CIAO/examples/Null_Component/model/Null_Component.mga Binary files differnew file mode 100644 index 00000000000..6fde9b4175a --- /dev/null +++ b/CIAO/examples/Null_Component/model/Null_Component.mga diff --git a/CIAO/examples/Null_Component/model/Null_Component.xme b/CIAO/examples/Null_Component/model/Null_Component.xme new file mode 100644 index 00000000000..3893827cb76 --- /dev/null +++ b/CIAO/examples/Null_Component/model/Null_Component.xme @@ -0,0 +1,843 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE project SYSTEM "mga.dtd"> + +<project guid="{CAA6F237-1527-4481-ADB7-764DB01170E8}" cdate="Tue Oct 10 12:57:50 2006" mdate="Tue Oct 10 12:57:50 2006" version="" metaguid="{1B0D2E44-51AC-4A14-BF57-FADB2F5F9C86}" metaversion="" metaname="PICML"> + <name>Null_Component</name> + <comment></comment> + <author></author> + <folder id="id-006a-00000001" relid="0x1" childrelidcntr="0x2" kind="RootFolder"> + <name>Null_Component</name> + <folder id="id-006a-00000002" relid="0x2" childrelidcntr="0x2" kind="InterfaceDefinitions"> + <name>InterfaceDefinitions</name> + <model id="id-0065-00000001" kind="File" relid="0x1" childrelidcntr="0x1"> + <name>Null_Interface</name> + <attribute kind="PrefixTag" status="meta"> + <value></value> + </attribute> + <model id="id-0065-00000002" kind="Object" role="Object" relid="0x1" childrelidcntr="0x1"> + <name>Null_Interface</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + <attribute kind="PrefixTag" status="meta"> + <value></value> + </attribute> + <attribute kind="SpecifyIdTag" status="meta"> + <value></value> + </attribute> + <attribute kind="VersionTag" status="meta"> + <value></value> + </attribute> + <attribute kind="abstract" status="meta"> + <value>false</value> + </attribute> + <attribute kind="local" status="meta"> + <value>false</value> + </attribute> + <model id="id-0065-00000003" kind="TwowayOperation" role="TwowayOperation" relid="0x1" childrelidcntr="0x0"> + <name>null_operation</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag" status="meta"> + <value></value> + </attribute> + <attribute kind="VersionTag" status="meta"> + <value></value> + </attribute> + </model> + </model> + </model> + <model id="id-0065-00000004" kind="File" relid="0x2" childrelidcntr="0x4"> + <name>Null_Component</name> + <attribute kind="PrefixTag" status="meta"> + <value></value> + </attribute> + <model id="id-0065-00000005" kind="Component" role="Component" relid="0x2" childrelidcntr="0x1"> + <name>Null_Component</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag" status="meta"> + <value></value> + </attribute> + <attribute kind="UUID" status="meta"> + <value></value> + </attribute> + <attribute kind="VersionTag" status="meta"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <reference id="id-0067-00000002" kind="ProvidedRequestPort" role="ProvidedRequestPort" relid="0x1" referred="id-0065-00000002"> + <name>null_facet</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag" status="meta"> + <value></value> + </attribute> + <attribute kind="VersionTag" status="meta"> + <value></value> + </attribute> + <attribute kind="exclusiveProvider" status="meta"> + <value>false</value> + </attribute> + <attribute kind="exclusiveUser" status="meta"> + <value>false</value> + </attribute> + <attribute kind="optional" status="meta"> + <value>false</value> + </attribute> + </reference> + </model> + <model id="id-0065-00000006" kind="ComponentFactory" role="ComponentFactory" relid="0x3" childrelidcntr="0x0"> + <name>Null_Component_Home</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>793,493</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag" status="meta"> + <value></value> + </attribute> + <attribute kind="VersionTag" status="meta"> + <value></value> + </attribute> + </model> + <reference id="id-0067-00000001" kind="FileRef" role="FileRef" relid="0x1" referred="id-0065-00000001"> + <name>FileRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="InterfaceDefinition" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>243,143</value> + </regnode> + </regnode> + </regnode> + </reference> + <connection id="id-0068-00000001" kind="ManagesComponent" role="ManagesComponent" relid="0x4"> + <name>ManagesComponent</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>Ws</value> + </regnode> + <connpoint role="dst" target="id-0065-00000005"/> + <connpoint role="src" target="id-0065-00000006"/> + </connection> + </model> + </folder> + <folder id="id-006a-00000003" relid="0x1" childrelidcntr="0xb" kind="PredefinedTypes"> + <name>PredefinedTypes</name> + <atom id="id-0066-00000001" kind="TypeKind" relid="0xb"> + <name>TypeKind</name> + </atom> + <atom id="id-0066-00000002" kind="TypeEncoding" relid="0xa"> + <name>TypeEncoding</name> + </atom> + <atom id="id-0066-00000003" kind="String" relid="0x9"> + <name>String</name> + </atom> + <atom id="id-0066-00000004" kind="Boolean" relid="0x8"> + <name>Boolean</name> + </atom> + <atom id="id-0066-00000005" kind="ShortInteger" relid="0x7"> + <name>ShortInteger</name> + </atom> + <atom id="id-0066-00000006" kind="RealNumber" relid="0x6"> + <name>RealNumber</name> + </atom> + <atom id="id-0066-00000007" kind="LongInteger" relid="0x5"> + <name>LongInteger</name> + </atom> + <atom id="id-0066-00000008" kind="GenericValueObject" relid="0x4"> + <name>GenericValueObject</name> + </atom> + <atom id="id-0066-00000009" kind="GenericValue" relid="0x3"> + <name>GenericValue</name> + </atom> + <atom id="id-0066-0000000a" kind="GenericObject" relid="0x2"> + <name>GenericObject</name> + </atom> + <atom id="id-0066-0000000b" kind="Byte" relid="0x1"> + <name>Byte</name> + </atom> + </folder> + <folder id="id-006a-00000004" relid="0x3" childrelidcntr="0x3" kind="ComponentImplementations"> + <name>ComponentImplementations</name> + <model id="id-0065-00000007" kind="ComponentImplementationContainer" relid="0x1" childrelidcntr="0xb"> + <name>Null_ComponentImplementation</name> + <model id="id-0065-00000008" kind="Property" role="Property" relid="0x2" childrelidcntr="0x2"> + <name>ComponentIOR</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>282,168</value> + </regnode> + </regnode> + </regnode> + <attribute kind="DataValue"> + <value>Null_Component.ior</value> + </attribute> + <reference id="id-0067-00000003" kind="DataType" role="DataType" relid="0x2" referred="id-0066-00000003"> + <name>String</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + <atom id="id-0066-0000000c" kind="MonolithicImplementation" role="MonolithicImplementation" relid="0x1"> + <name>Null_ComponentMonolithicImpl</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>125,68</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID" status="meta"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + </atom> + <reference id="id-0067-00000004" kind="ComponentRef" role="ComponentRef" relid="0x9" referred="id-0065-00000005"> + <name>Null_ComponentRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>910,568</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-00000008" kind="ImplementationArtifactReference" role="ImplementationArtifactReference" relid="0x3" referred="id-0066-0000000d"> + <name>Null_Component_stubRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>439,268</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-00000009" kind="ImplementationArtifactReference" role="ImplementationArtifactReference" relid="0x4" referred="id-0066-0000000e"> + <name>Null_Component_svntRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>596,368</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-0000000a" kind="ImplementationArtifactReference" role="ImplementationArtifactReference" relid="0x5" referred="id-0066-0000000f"> + <name>Null_Component_execRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>753,468</value> + </regnode> + </regnode> + </regnode> + </reference> + <connection id="id-0068-00000002" kind="ConfigProperty" role="ConfigProperty" relid="0xa"> + <name>ConfigProperty</name> + <connpoint role="dst" target="id-0065-00000008"/> + <connpoint role="src" target="id-0066-0000000c"/> + </connection> + <connection id="id-0068-00000003" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" relid="0x6"> + <name>MonolithprimaryArtifact</name> + <connpoint role="src" target="id-0066-0000000c"/> + <connpoint role="dst" target="id-0067-00000008"/> + </connection> + <connection id="id-0068-00000004" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" relid="0x7"> + <name>MonolithprimaryArtifact</name> + <connpoint role="src" target="id-0066-0000000c"/> + <connpoint role="dst" target="id-0067-00000009"/> + </connection> + <connection id="id-0068-00000005" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" relid="0x8"> + <name>MonolithprimaryArtifact</name> + <connpoint role="src" target="id-0066-0000000c"/> + <connpoint role="dst" target="id-0067-0000000a"/> + </connection> + <connection id="id-0068-00000006" kind="Implements" role="Implements" relid="0xb"> + <name>Implements</name> + <connpoint role="src" target="id-0066-0000000c"/> + <connpoint role="dst" target="id-0067-00000004"/> + </connection> + </model> + <model id="id-0065-00000015" kind="ComponentImplementationContainer" relid="0x3" childrelidcntr="0x3"> + <name>Null_Assembly_Container</name> + <model id="id-0065-00000018" kind="ComponentAssembly" role="ComponentAssembly" relid="0x3" childrelidcntr="0x1"> + <name>Null_Assembly</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>212,114</value> + </regnode> + </regnode> + <regnode name="QoSModelAspect" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>212,114</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID" status="meta"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <model id="id-0065-00000019" kind="Component" role="Component" derivedfrom="id-0065-00000005" isinstance="yes" isprimary="yes" relid="0x1" childrelidcntr="0x0"> + <name>Null_Component</name> + <regnode name="PartRegs"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>342,130</value> + </regnode> + </regnode> + </regnode> + <attribute kind="SpecifyIdTag" status="meta"> + <value></value> + </attribute> + <attribute kind="UUID" status="meta"> + <value></value> + </attribute> + <attribute kind="VersionTag" status="meta"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <reference id="id-0067-00000019" kind="ProvidedRequestPort" role="ProvidedRequestPort" derivedfrom="id-0067-00000002" isinstance="yes" isprimary="no" referred="id-0065-00000002" isbound="yes"> + <name>null_facet</name> + <attribute kind="SpecifyIdTag" status="meta"> + <value></value> + </attribute> + <attribute kind="VersionTag" status="meta"> + <value></value> + </attribute> + <attribute kind="exclusiveProvider" status="meta"> + <value>false</value> + </attribute> + <attribute kind="exclusiveUser" status="meta"> + <value>false</value> + </attribute> + <attribute kind="optional" status="meta"> + <value>false</value> + </attribute> + </reference> + </model> + </model> + </model> + </folder> + <folder id="id-006a-00000005" relid="0x4" childrelidcntr="0x0" kind="ImplementationArtifacts"> + <name>ImplementationArtifacts</name> + <model id="id-0065-00000009" kind="ArtifactContainer" relid="0x1" childrelidcntr="0xa"> + <name>Null_ComponentArtifacts</name> + <model id="id-0065-0000000a" kind="Property" role="Property" relid="0x2" childrelidcntr="0x2"> + <name>entryPoint</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>334,200</value> + </regnode> + </regnode> + </regnode> + <attribute kind="DataValue"> + <value>createNull_ComponentHome_Servant</value> + </attribute> + <reference id="id-0067-00000005" kind="DataType" role="DataType" relid="0x2" referred="id-0066-00000003"> + <name>String</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + <model id="id-0065-0000000b" kind="Property" role="Property" relid="0x4" childrelidcntr="0x2"> + <name>entryPoint</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>700,432</value> + </regnode> + </regnode> + </regnode> + <attribute kind="DataValue"> + <value>createNull_ComponentHome_Impl</value> + </attribute> + <reference id="id-0067-00000006" kind="DataType" role="DataType" relid="0x2" referred="id-0066-00000003"> + <name>String</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + <atom id="id-0066-0000000d" kind="ImplementationArtifact" role="ImplementationArtifact" relid="0x1"> + <name>Null_Component_stub</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>151,84</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID" status="meta"> + <value></value> + </attribute> + <attribute kind="configuration" status="meta"> + <value></value> + </attribute> + <attribute kind="label"> + <value></value> + </attribute> + <attribute kind="location"> + <value>Null_Component_stub</value> + </attribute> + </atom> + <atom id="id-0066-0000000e" kind="ImplementationArtifact" role="ImplementationArtifact" relid="0x3"> + <name>Null_Component_svnt</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>517,316</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID" status="meta"> + <value></value> + </attribute> + <attribute kind="configuration" status="meta"> + <value></value> + </attribute> + <attribute kind="label"> + <value></value> + </attribute> + <attribute kind="location"> + <value>Null_Component_svnt</value> + </attribute> + </atom> + <atom id="id-0066-0000000f" kind="ImplementationArtifact" role="ImplementationArtifact" relid="0x5"> + <name>Null_Component_exec</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>883,548</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID" status="meta"> + <value></value> + </attribute> + <attribute kind="configuration" status="meta"> + <value></value> + </attribute> + <attribute kind="label"> + <value></value> + </attribute> + <attribute kind="location"> + <value>Null_Component_exec</value> + </attribute> + </atom> + <connection id="id-0068-00000007" kind="ArtifactExecParameter" role="ArtifactExecParameter" relid="0x7"> + <name>ArtifactExecParameter</name> + <connpoint role="dst" target="id-0065-0000000a"/> + <connpoint role="src" target="id-0066-0000000e"/> + </connection> + <connection id="id-0068-00000008" kind="ArtifactDependency" role="ArtifactDependency" relid="0x8"> + <name>ArtifactDependency</name> + <connpoint role="dst" target="id-0066-0000000d"/> + <connpoint role="src" target="id-0066-0000000e"/> + </connection> + <connection id="id-0068-00000009" kind="ArtifactExecParameter" role="ArtifactExecParameter" relid="0x8"> + <name>ArtifactExecParameter</name> + <connpoint role="dst" target="id-0065-0000000b"/> + <connpoint role="src" target="id-0066-0000000f"/> + </connection> + <connection id="id-0068-0000000a" kind="ArtifactDependency" role="ArtifactDependency" relid="0x9"> + <name>ArtifactDependency</name> + <connpoint role="dst" target="id-0066-0000000e"/> + <connpoint role="src" target="id-0066-0000000f"/> + </connection> + <connection id="id-0068-0000000b" kind="ArtifactDependency" role="ArtifactDependency" relid="0xa"> + <name>ArtifactDependency</name> + <connpoint role="dst" target="id-0066-0000000d"/> + <connpoint role="src" target="id-0066-0000000f"/> + </connection> + </model> + </folder> + <folder id="id-006a-00000006" relid="0x5" childrelidcntr="0x0" kind="ComponentTypes"> + <name>ComponentTypes</name> + <model id="id-0065-0000000c" kind="ComponentContainer" relid="0x1" childrelidcntr="0x1"> + <name>Null_ComponentContainer</name> + <reference id="id-0067-00000007" kind="ComponentRef" role="ComponentRef" relid="0x1" referred="id-0065-00000005"> + <name>Null_ComponentRef</name> + <regnode name="PartRegs" isopaque="yes"> + <value></value> + <regnode name="Packaging" isopaque="yes"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>518,318</value> + </regnode> + </regnode> + </regnode> + </reference> + </model> + </folder> + <folder id="id-006a-00000007" relid="0x6" childrelidcntr="0x1" kind="PackageConfigurations"> + <name>PackageConfigurations</name> + <model id="id-0065-00000010" kind="PackageConfigurationContainer" relid="0x1" childrelidcntr="0x6"> + <name>Default</name> + <atom id="id-0066-00000012" kind="PackageConfiguration" role="PackageConfiguration" relid="0x2"> + <name>PackageConfiguration</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>373,149</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID" status="meta"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + </atom> + <reference id="id-0067-0000001c" kind="ComponentPackageReference" role="ComponentPackageReference" relid="0x5" referred="id-0066-00000014"> + <name>Null_Assembly_Package</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>573,146</value> + </regnode> + </regnode> + </regnode> + <attribute kind="requiredName" status="meta"> + <value></value> + </attribute> + <attribute kind="requiredType" status="meta"> + <value></value> + </attribute> + <attribute kind="requiredUUID" status="meta"> + <value></value> + </attribute> + </reference> + <connection id="id-0068-00000016" kind="PackageConfReference" role="PackageConfReference" relid="0x6"> + <name>PackageConfReference</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>Ew</value> + </regnode> + <connpoint role="src" target="id-0066-00000012"/> + <connpoint role="dst" target="id-0067-0000001c"/> + </connection> + </model> + </folder> + <folder id="id-006a-00000008" relid="0x7" childrelidcntr="0x2" kind="ComponentPackages"> + <name>ComponentPackages</name> + <model id="id-0065-0000000d" kind="PackageContainer" relid="0x1" childrelidcntr="0xa"> + <name>Null_Component_Package</name> + <atom id="id-0066-00000010" kind="ComponentPackage" role="ComponentPackage" relid="0x1"> + <name>Null_Component_Package</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>366,163</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID" status="meta"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + </atom> + <reference id="id-0067-00000010" kind="ComponentImplementationReference" role="ComponentImplementationReference" relid="0x5" referred="id-0066-0000000c"> + <name>Null_ComponentMonolithicImpl</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>130,158</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-0000001a" kind="ComponentRef" role="ComponentRef" relid="0x9" referred="id-0065-00000019"> + <name>Null_Component</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>545,137</value> + </regnode> + </regnode> + </regnode> + </reference> + <connection id="id-0068-0000000e" kind="Implementation" role="Implementation" relid="0x6"> + <name>Implementation</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>We</value> + </regnode> + <connpoint role="src" target="id-0066-00000010"/> + <connpoint role="dst" target="id-0067-00000010"/> + </connection> + <connection id="id-0068-00000014" kind="PackageInterface" role="PackageInterface" relid="0xa"> + <name>PackageInterface</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>Ew</value> + </regnode> + <connpoint role="src" target="id-0066-00000010"/> + <connpoint role="dst" target="id-0067-0000001a"/> + </connection> + </model> + <model id="id-0065-0000001a" kind="PackageContainer" relid="0x2" childrelidcntr="0x3"> + <name>Null_Assembly_Package</name> + <atom id="id-0066-00000014" kind="ComponentPackage" role="ComponentPackage" relid="0x1"> + <name>Null_Assembly_Package</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>282,135</value> + </regnode> + </regnode> + </regnode> + <attribute kind="UUID" status="meta"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + </atom> + <reference id="id-0067-0000001b" kind="ComponentImplementationReference" role="ComponentImplementationReference" relid="0x2" referred="id-0065-00000018"> + <name>Null_Assembly</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>502,110</value> + </regnode> + </regnode> + </regnode> + </reference> + <connection id="id-0068-00000015" kind="Implementation" role="Implementation" relid="0x3"> + <name>Implementation</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>Ew</value> + </regnode> + <connpoint role="src" target="id-0066-00000014"/> + <connpoint role="dst" target="id-0067-0000001b"/> + </connection> + </model> + </folder> + <folder id="id-006a-00000009" relid="0x8" childrelidcntr="0x1" kind="DeploymentPlans"> + <name>DeploymentPlans</name> + <model id="id-0065-00000014" kind="DeploymentPlan" relid="0x1" childrelidcntr="0x7"> + <name>Plan</name> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <reference id="id-0067-00000013" kind="NodeReference" role="NodeReference" relid="0x2" referred="id-0065-00000013"> + <name>NodeA</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="NodeMapping" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>305,123</value> + </regnode> + </regnode> + </regnode> + </reference> + <reference id="id-0067-0000001d" kind="ComponentRef" role="ComponentRef" relid="0x7" referred="id-0065-00000019"> + <name>Null_Component</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="NodeMapping" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>475,102</value> + </regnode> + </regnode> + </regnode> + </reference> + <connection id="id-0068-00000013" kind="InstanceMapping" role="InstanceMapping" relid="0x4"> + <name>InstanceMapping</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>w</value> + </regnode> + <connpoint role="dst" target="id-0067-00000013"/> + <connpoint role="src" target="id-0069-00000001"/> + </connection> + <set id="id-0069-00000001" kind="CollocationGroup" role="CollocationGroup" relid="0x1" members="id-0067-0000001d"> + <name>CollocationGroup</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="NodeMapping" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>114,128</value> + </regnode> + </regnode> + </regnode> + </set> + </model> + </folder> + <folder id="id-006a-0000000a" relid="0x9" childrelidcntr="0x1" kind="Targets"> + <name>Targets</name> + <model id="id-0065-00000012" kind="Domain" relid="0x1" childrelidcntr="0x1"> + <name>Domain</name> + <attribute kind="UUID" status="meta"> + <value></value> + </attribute> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + <model id="id-0065-00000013" kind="Node" role="Node" relid="0x1" childrelidcntr="0x0"> + <name>NodeA</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Target" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>198,170</value> + </regnode> + </regnode> + </regnode> + <attribute kind="label" status="meta"> + <value></value> + </attribute> + </model> + </model> + </folder> + <folder id="id-006a-0000000b" relid="0xa" childrelidcntr="0x1" kind="TopLevelPackages"> + <name>TopLevelPackages</name> + <model id="id-0065-00000011" kind="TopLevelPackageContainer" relid="0x1" childrelidcntr="0x3"> + <name>Default</name> + <atom id="id-0066-00000013" kind="TopLevelPackage" role="TopLevelPackage" relid="0x1"> + <name>TopLevelPackage</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>240,184</value> + </regnode> + </regnode> + </regnode> + </atom> + <reference id="id-0067-00000012" kind="PackageConfigurationReference" role="PackageConfigurationReference" relid="0x2" referred="id-0066-00000012"> + <name>PackageConfiguration</name> + <regnode name="PartRegs" status="undefined"> + <value></value> + <regnode name="Packaging" status="undefined"> + <value></value> + <regnode name="Position" isopaque="yes"> + <value>517,181</value> + </regnode> + </regnode> + </regnode> + </reference> + <connection id="id-0068-00000012" kind="package" role="package" relid="0x3"> + <name>package</name> + <regnode name="autorouterPref" isopaque="yes"> + <value>w</value> + </regnode> + <connpoint role="src" target="id-0066-00000013"/> + <connpoint role="dst" target="id-0067-00000012"/> + </connection> + </model> + </folder> + <folder id="id-006a-0000000c" relid="0xb" childrelidcntr="0x0" kind="ComponentBuild"> + <name>ComponentBuild</name> + </folder> + </folder> +</project> diff --git a/CIAO/examples/Null_Component/plan.h b/CIAO/examples/Null_Component/plan.h new file mode 100644 index 00000000000..fce247dc321 --- /dev/null +++ b/CIAO/examples/Null_Component/plan.h @@ -0,0 +1,32 @@ +// $Id$ + +extern "C" ::Components::HomeExecutorBase_ptr create_Null_Component_Home_Impl (void); +extern "C" ::PortableServer::Servant create_Null_Component_Home_Servant + (::Components::HomeExecutorBase_ptr p, + ::CIAO::Session_Container *c, + const char*); + +struct HomeAttributes +{ + char const * component_instance_name_; + /// Specify the entrypoint to component executor DLL. + char const * executor_entrypt_; + ::CIAO::HomeFactory executor_fptr_; + /// Specify the entrypoint to component servant DLL. + char const * servant_entrypt_; + ::CIAO::ServantFactory servant_fptr_; +}; + +// Homes +static const HomeAttributes homes_table[] = +{ + { + "Null_Component_ComponentImplementations_Null_Assembly_Container_Null_Assembly_Null_Component", + "create_Null_Component_Home_Impl", + create_Null_Component_Home_Impl, + "create_Null_Component_Home_Servant", + create_Null_Component_Home_Servant + }, +}; + + |