diff options
Diffstat (limited to 'modules/CIAO/tests/IDL3/Homes')
20 files changed, 808 insertions, 0 deletions
diff --git a/modules/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes.idl b/modules/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes.idl new file mode 100644 index 00000000000..7dd338d871e --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes.idl @@ -0,0 +1,54 @@ +// $Id$ +/** + * @file HomeAttributes.idl + * @author Will Otte <wotte@dre.vanderbilt.edu> + * + * Tests attributes in homes + */ + +#include <Components.idl> + +module HomeAttributes +{ + interface foo_interface + { + }; + + component Foo supports foo_interface + { + }; + + home FooHome manages Foo + { + attribute float test; + attribute long testA, testB; + }; + + exception FooException + { + }; + + exception BarException + { + }; + + home ROFooHome manages Foo + { + readonly attribute float test1; + readonly attribute long testB, testC; + }; + + home FooRaisesHome manages Foo + { + attribute float test2 getraises (FooException); + attribute float test3 setraises (BarException); + attribute float test4 + getraises (FooException) setraises (BarException); + }; + + home ROFooRaisesHome manages Foo + { + readonly attribute float test5 raises (FooException); + }; + +}; diff --git a/modules/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes.mpc b/modules/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes.mpc new file mode 100644 index 00000000000..4105b180342 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes.mpc @@ -0,0 +1,17 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -n HomeAttributes" + +project(HomeAttributes_stub): ciao_client_dnc { + + sharedname = HomeAttributes_stub + idlflags += -Wb,stub_export_macro=HOMEATTRIBUTES_STUB_Export -Wb,stub_export_include=HomeAttributes_stub_export.h -Wb,skel_export_macro=HOMEATTRIBUTES_SVNT_Export -Wb,skel_export_include=HomeAttributes_svnt_export.h + dynamicflags = HOMEATTRIBUTES_STUB_BUILD_DLL + + IDL_Files { + HomeAttributes.idl + } + + Source_Files { + HomeAttributesC.cpp + } +} diff --git a/modules/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes_stub_export.h b/modules/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes_stub_export.h new file mode 100644 index 00000000000..191b303e6d3 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes_stub_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl HOMEATTRIBUTES_STUB +// ------------------------------ +#ifndef HOMEATTRIBUTES_STUB_EXPORT_H +#define HOMEATTRIBUTES_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (HOMEATTRIBUTES_STUB_HAS_DLL) +# define HOMEATTRIBUTES_STUB_HAS_DLL 1 +#endif /* ! HOMEATTRIBUTES_STUB_HAS_DLL */ + +#if defined (HOMEATTRIBUTES_STUB_HAS_DLL) && (HOMEATTRIBUTES_STUB_HAS_DLL == 1) +# if defined (HOMEATTRIBUTES_STUB_BUILD_DLL) +# define HOMEATTRIBUTES_STUB_Export ACE_Proper_Export_Flag +# define HOMEATTRIBUTES_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define HOMEATTRIBUTES_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* HOMEATTRIBUTES_STUB_BUILD_DLL */ +# define HOMEATTRIBUTES_STUB_Export ACE_Proper_Import_Flag +# define HOMEATTRIBUTES_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define HOMEATTRIBUTES_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* HOMEATTRIBUTES_STUB_BUILD_DLL */ +#else /* HOMEATTRIBUTES_STUB_HAS_DLL == 1 */ +# define HOMEATTRIBUTES_STUB_Export +# define HOMEATTRIBUTES_STUB_SINGLETON_DECLARATION(T) +# define HOMEATTRIBUTES_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* HOMEATTRIBUTES_STUB_HAS_DLL == 1 */ + +// Set HOMEATTRIBUTES_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (HOMEATTRIBUTES_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define HOMEATTRIBUTES_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define HOMEATTRIBUTES_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !HOMEATTRIBUTES_STUB_NTRACE */ + +#if (HOMEATTRIBUTES_STUB_NTRACE == 1) +# define HOMEATTRIBUTES_STUB_TRACE(X) +#else /* (HOMEATTRIBUTES_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define HOMEATTRIBUTES_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (HOMEATTRIBUTES_STUB_NTRACE == 1) */ + +#endif /* HOMEATTRIBUTES_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes_svnt_export.h b/modules/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes_svnt_export.h new file mode 100644 index 00000000000..88639ab9f16 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes_svnt_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl HOMEATTRIBUTES_SVNT +// ------------------------------ +#ifndef HOMEATTRIBUTES_SVNT_EXPORT_H +#define HOMEATTRIBUTES_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (HOMEATTRIBUTES_SVNT_HAS_DLL) +# define HOMEATTRIBUTES_SVNT_HAS_DLL 1 +#endif /* ! HOMEATTRIBUTES_SVNT_HAS_DLL */ + +#if defined (HOMEATTRIBUTES_SVNT_HAS_DLL) && (HOMEATTRIBUTES_SVNT_HAS_DLL == 1) +# if defined (HOMEATTRIBUTES_SVNT_BUILD_DLL) +# define HOMEATTRIBUTES_SVNT_Export ACE_Proper_Export_Flag +# define HOMEATTRIBUTES_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define HOMEATTRIBUTES_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* HOMEATTRIBUTES_SVNT_BUILD_DLL */ +# define HOMEATTRIBUTES_SVNT_Export ACE_Proper_Import_Flag +# define HOMEATTRIBUTES_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define HOMEATTRIBUTES_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* HOMEATTRIBUTES_SVNT_BUILD_DLL */ +#else /* HOMEATTRIBUTES_SVNT_HAS_DLL == 1 */ +# define HOMEATTRIBUTES_SVNT_Export +# define HOMEATTRIBUTES_SVNT_SINGLETON_DECLARATION(T) +# define HOMEATTRIBUTES_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* HOMEATTRIBUTES_SVNT_HAS_DLL == 1 */ + +// Set HOMEATTRIBUTES_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (HOMEATTRIBUTES_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define HOMEATTRIBUTES_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define HOMEATTRIBUTES_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !HOMEATTRIBUTES_SVNT_NTRACE */ + +#if (HOMEATTRIBUTES_SVNT_NTRACE == 1) +# define HOMEATTRIBUTES_SVNT_TRACE(X) +#else /* (HOMEATTRIBUTES_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define HOMEATTRIBUTES_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (HOMEATTRIBUTES_SVNT_NTRACE == 1) */ + +#endif /* HOMEATTRIBUTES_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Homes/Basic/Basic.idl b/modules/CIAO/tests/IDL3/Homes/Basic/Basic.idl new file mode 100644 index 00000000000..3d9f4c5162e --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Basic/Basic.idl @@ -0,0 +1,31 @@ +// $Id$ +/** + * @file Basic.idl + * @author Will Otte <wotte@dre.vanderbilt.edu> + * + * Tests the compileability of basic Home types. + */ + +#include <Components.idl> + +module BasicHomes +{ + + interface foo_interface {}; + + component Foo supports foo_interface {}; + + home FooHome manages Foo + { + }; + + + interface bar_interface {}; + + component Bar supports bar_interface {}; + + home BarHome supports foo_interface manages Bar + { + }; + +}; diff --git a/modules/CIAO/tests/IDL3/Homes/Basic/Basic.mpc b/modules/CIAO/tests/IDL3/Homes/Basic/Basic.mpc new file mode 100644 index 00000000000..c79cf8c919b --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Basic/Basic.mpc @@ -0,0 +1,17 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -n Basic" + +project(IDL3_Basic_stub): ciao_client_dnc { + + sharedname = Homes_Basic_stub + idlflags += -Wb,stub_export_macro=BASIC_STUB_Export -Wb,stub_export_include=Basic_stub_export.h -Wb,skel_export_macro=BASIC_SVNT_Export -Wb,skel_export_include=Basic_svnt_export.h + dynamicflags = BASIC_STUB_BUILD_DLL + + IDL_Files { + Basic.idl + } + + Source_Files { + BasicC.cpp + } +} diff --git a/modules/CIAO/tests/IDL3/Homes/Basic/Basic_stub_export.h b/modules/CIAO/tests/IDL3/Homes/Basic/Basic_stub_export.h new file mode 100644 index 00000000000..97727bb3a01 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Basic/Basic_stub_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl BASIC_STUB +// ------------------------------ +#ifndef BASIC_STUB_EXPORT_H +#define BASIC_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (BASIC_STUB_HAS_DLL) +# define BASIC_STUB_HAS_DLL 1 +#endif /* ! BASIC_STUB_HAS_DLL */ + +#if defined (BASIC_STUB_HAS_DLL) && (BASIC_STUB_HAS_DLL == 1) +# if defined (BASIC_STUB_BUILD_DLL) +# define BASIC_STUB_Export ACE_Proper_Export_Flag +# define BASIC_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define BASIC_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* BASIC_STUB_BUILD_DLL */ +# define BASIC_STUB_Export ACE_Proper_Import_Flag +# define BASIC_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define BASIC_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* BASIC_STUB_BUILD_DLL */ +#else /* BASIC_STUB_HAS_DLL == 1 */ +# define BASIC_STUB_Export +# define BASIC_STUB_SINGLETON_DECLARATION(T) +# define BASIC_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* BASIC_STUB_HAS_DLL == 1 */ + +// Set BASIC_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (BASIC_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define BASIC_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define BASIC_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !BASIC_STUB_NTRACE */ + +#if (BASIC_STUB_NTRACE == 1) +# define BASIC_STUB_TRACE(X) +#else /* (BASIC_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define BASIC_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (BASIC_STUB_NTRACE == 1) */ + +#endif /* BASIC_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Homes/Basic/Basic_svnt_export.h b/modules/CIAO/tests/IDL3/Homes/Basic/Basic_svnt_export.h new file mode 100644 index 00000000000..3bc632db060 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Basic/Basic_svnt_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl BASIC_SVNT +// ------------------------------ +#ifndef BASIC_SVNT_EXPORT_H +#define BASIC_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (BASIC_SVNT_HAS_DLL) +# define BASIC_SVNT_HAS_DLL 1 +#endif /* ! BASIC_SVNT_HAS_DLL */ + +#if defined (BASIC_SVNT_HAS_DLL) && (BASIC_SVNT_HAS_DLL == 1) +# if defined (BASIC_SVNT_BUILD_DLL) +# define BASIC_SVNT_Export ACE_Proper_Export_Flag +# define BASIC_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define BASIC_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* BASIC_SVNT_BUILD_DLL */ +# define BASIC_SVNT_Export ACE_Proper_Import_Flag +# define BASIC_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define BASIC_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* BASIC_SVNT_BUILD_DLL */ +#else /* BASIC_SVNT_HAS_DLL == 1 */ +# define BASIC_SVNT_Export +# define BASIC_SVNT_SINGLETON_DECLARATION(T) +# define BASIC_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* BASIC_SVNT_HAS_DLL == 1 */ + +// Set BASIC_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (BASIC_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define BASIC_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define BASIC_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !BASIC_SVNT_NTRACE */ + +#if (BASIC_SVNT_NTRACE == 1) +# define BASIC_SVNT_TRACE(X) +#else /* (BASIC_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define BASIC_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (BASIC_SVNT_NTRACE == 1) */ + +#endif /* BASIC_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Homes/Factory/Factory.idl b/modules/CIAO/tests/IDL3/Homes/Factory/Factory.idl new file mode 100644 index 00000000000..c9520b11c0a --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Factory/Factory.idl @@ -0,0 +1,35 @@ +// $Id$ +/** + * @file Factory.idl + * @author Will Otte <wotte@dre.vanderbilt.edu> + * + * Tests the compilation of Homes with Factorys. + */ + +#include <Components.idl> + +module FactoryHomes +{ + exception foo_exception + { + }; + + interface foo_interface + { + }; + + component Foo supports foo_interface + { + }; + + home FooHome manages Foo + { + factory FooFactory (in string foo, in short bar) raises (foo_exception); + }; + + eventtype food + { + }; + + +}; diff --git a/modules/CIAO/tests/IDL3/Homes/Factory/Factory.mpc b/modules/CIAO/tests/IDL3/Homes/Factory/Factory.mpc new file mode 100644 index 00000000000..c861d0df611 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Factory/Factory.mpc @@ -0,0 +1,17 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -n Factory" + +project(Factory_stub): ciao_client_dnc { + + sharedname = Factory_stub + idlflags += -Wb,stub_export_macro=FACTORY_STUB_Export -Wb,stub_export_include=Factory_stub_export.h -Wb,skel_export_macro=FACTORY_SVNT_Export -Wb,skel_export_include=Factory_svnt_export.h + dynamicflags = FACTORY_STUB_BUILD_DLL + + IDL_Files { + Factory.idl + } + + Source_Files { + FactoryC.cpp + } +} diff --git a/modules/CIAO/tests/IDL3/Homes/Factory/Factory_stub_export.h b/modules/CIAO/tests/IDL3/Homes/Factory/Factory_stub_export.h new file mode 100644 index 00000000000..d1e43b3c0ec --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Factory/Factory_stub_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl FACTORY_STUB +// ------------------------------ +#ifndef FACTORY_STUB_EXPORT_H +#define FACTORY_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (FACTORY_STUB_HAS_DLL) +# define FACTORY_STUB_HAS_DLL 1 +#endif /* ! FACTORY_STUB_HAS_DLL */ + +#if defined (FACTORY_STUB_HAS_DLL) && (FACTORY_STUB_HAS_DLL == 1) +# if defined (FACTORY_STUB_BUILD_DLL) +# define FACTORY_STUB_Export ACE_Proper_Export_Flag +# define FACTORY_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define FACTORY_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* FACTORY_STUB_BUILD_DLL */ +# define FACTORY_STUB_Export ACE_Proper_Import_Flag +# define FACTORY_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define FACTORY_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* FACTORY_STUB_BUILD_DLL */ +#else /* FACTORY_STUB_HAS_DLL == 1 */ +# define FACTORY_STUB_Export +# define FACTORY_STUB_SINGLETON_DECLARATION(T) +# define FACTORY_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* FACTORY_STUB_HAS_DLL == 1 */ + +// Set FACTORY_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (FACTORY_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define FACTORY_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define FACTORY_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !FACTORY_STUB_NTRACE */ + +#if (FACTORY_STUB_NTRACE == 1) +# define FACTORY_STUB_TRACE(X) +#else /* (FACTORY_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define FACTORY_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (FACTORY_STUB_NTRACE == 1) */ + +#endif /* FACTORY_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Homes/Factory/Factory_svnt_export.h b/modules/CIAO/tests/IDL3/Homes/Factory/Factory_svnt_export.h new file mode 100644 index 00000000000..747fde7ba3d --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Factory/Factory_svnt_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl FACTORY_SVNT +// ------------------------------ +#ifndef FACTORY_SVNT_EXPORT_H +#define FACTORY_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (FACTORY_SVNT_HAS_DLL) +# define FACTORY_SVNT_HAS_DLL 1 +#endif /* ! FACTORY_SVNT_HAS_DLL */ + +#if defined (FACTORY_SVNT_HAS_DLL) && (FACTORY_SVNT_HAS_DLL == 1) +# if defined (FACTORY_SVNT_BUILD_DLL) +# define FACTORY_SVNT_Export ACE_Proper_Export_Flag +# define FACTORY_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define FACTORY_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* FACTORY_SVNT_BUILD_DLL */ +# define FACTORY_SVNT_Export ACE_Proper_Import_Flag +# define FACTORY_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define FACTORY_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* FACTORY_SVNT_BUILD_DLL */ +#else /* FACTORY_SVNT_HAS_DLL == 1 */ +# define FACTORY_SVNT_Export +# define FACTORY_SVNT_SINGLETON_DECLARATION(T) +# define FACTORY_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* FACTORY_SVNT_HAS_DLL == 1 */ + +// Set FACTORY_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (FACTORY_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define FACTORY_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define FACTORY_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !FACTORY_SVNT_NTRACE */ + +#if (FACTORY_SVNT_NTRACE == 1) +# define FACTORY_SVNT_TRACE(X) +#else /* (FACTORY_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define FACTORY_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (FACTORY_SVNT_NTRACE == 1) */ + +#endif /* FACTORY_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Homes/Finder/Finder.idl b/modules/CIAO/tests/IDL3/Homes/Finder/Finder.idl new file mode 100644 index 00000000000..5057b162fc3 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Finder/Finder.idl @@ -0,0 +1,30 @@ +// $Id$ +/** + * @file Finder.idl + * @author Will Otte <wotte@dre.vanderbilt.edu> + * + * Tests the compilation of Homes with Factorys. + */ + +#include <Components.idl> + +module FactoryHomes +{ + exception foo_exception + { + }; + + interface foo_interface + { + }; + + component Foo supports foo_interface + { + }; + + home FooHome manages Foo + { + factory FooFinder (in string foo, in short bar) raises (foo_exception); + }; + +}; diff --git a/modules/CIAO/tests/IDL3/Homes/Finder/Finder.mpc b/modules/CIAO/tests/IDL3/Homes/Finder/Finder.mpc new file mode 100644 index 00000000000..9881aad88f1 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Finder/Finder.mpc @@ -0,0 +1,17 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -n Finder" + +project(Finder_stub): ciao_client_dnc { + + sharedname = Finder_stub + idlflags += -Wb,stub_export_macro=FINDER_STUB_Export -Wb,stub_export_include=Finder_stub_export.h -Wb,skel_export_macro=FINDER_SVNT_Export -Wb,skel_export_include=Finder_svnt_export.h + dynamicflags = FINDER_STUB_BUILD_DLL + + IDL_Files { + Finder.idl + } + + Source_Files { + FinderC.cpp + } +} diff --git a/modules/CIAO/tests/IDL3/Homes/Finder/Finder_stub_export.h b/modules/CIAO/tests/IDL3/Homes/Finder/Finder_stub_export.h new file mode 100644 index 00000000000..9ff0b76fd8a --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Finder/Finder_stub_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl FINDER_STUB +// ------------------------------ +#ifndef FINDER_STUB_EXPORT_H +#define FINDER_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (FINDER_STUB_HAS_DLL) +# define FINDER_STUB_HAS_DLL 1 +#endif /* ! FINDER_STUB_HAS_DLL */ + +#if defined (FINDER_STUB_HAS_DLL) && (FINDER_STUB_HAS_DLL == 1) +# if defined (FINDER_STUB_BUILD_DLL) +# define FINDER_STUB_Export ACE_Proper_Export_Flag +# define FINDER_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define FINDER_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* FINDER_STUB_BUILD_DLL */ +# define FINDER_STUB_Export ACE_Proper_Import_Flag +# define FINDER_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define FINDER_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* FINDER_STUB_BUILD_DLL */ +#else /* FINDER_STUB_HAS_DLL == 1 */ +# define FINDER_STUB_Export +# define FINDER_STUB_SINGLETON_DECLARATION(T) +# define FINDER_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* FINDER_STUB_HAS_DLL == 1 */ + +// Set FINDER_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (FINDER_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define FINDER_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define FINDER_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !FINDER_STUB_NTRACE */ + +#if (FINDER_STUB_NTRACE == 1) +# define FINDER_STUB_TRACE(X) +#else /* (FINDER_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define FINDER_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (FINDER_STUB_NTRACE == 1) */ + +#endif /* FINDER_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Homes/Finder/Finder_svnt_export.h b/modules/CIAO/tests/IDL3/Homes/Finder/Finder_svnt_export.h new file mode 100644 index 00000000000..46e8202dab5 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Finder/Finder_svnt_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl FINDER_SVNT +// ------------------------------ +#ifndef FINDER_SVNT_EXPORT_H +#define FINDER_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (FINDER_SVNT_HAS_DLL) +# define FINDER_SVNT_HAS_DLL 1 +#endif /* ! FINDER_SVNT_HAS_DLL */ + +#if defined (FINDER_SVNT_HAS_DLL) && (FINDER_SVNT_HAS_DLL == 1) +# if defined (FINDER_SVNT_BUILD_DLL) +# define FINDER_SVNT_Export ACE_Proper_Export_Flag +# define FINDER_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define FINDER_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* FINDER_SVNT_BUILD_DLL */ +# define FINDER_SVNT_Export ACE_Proper_Import_Flag +# define FINDER_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define FINDER_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* FINDER_SVNT_BUILD_DLL */ +#else /* FINDER_SVNT_HAS_DLL == 1 */ +# define FINDER_SVNT_Export +# define FINDER_SVNT_SINGLETON_DECLARATION(T) +# define FINDER_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* FINDER_SVNT_HAS_DLL == 1 */ + +// Set FINDER_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (FINDER_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define FINDER_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define FINDER_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !FINDER_SVNT_NTRACE */ + +#if (FINDER_SVNT_NTRACE == 1) +# define FINDER_SVNT_TRACE(X) +#else /* (FINDER_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define FINDER_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (FINDER_SVNT_NTRACE == 1) */ + +#endif /* FINDER_SVNT_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Homes/Inheritance/Inheritance.idl b/modules/CIAO/tests/IDL3/Homes/Inheritance/Inheritance.idl new file mode 100644 index 00000000000..e1bce50fc2f --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Inheritance/Inheritance.idl @@ -0,0 +1,33 @@ +// $Id$ +/** + * @file Inheritance.idl + * @author Will Otte <wotte@dre.vanderbilt.edu> + * + * Tests the compilation of Home inheritance. + */ + +#include <Components.idl> + +module HomeInheritance +{ + interface foo_interface + { + }; + + component Foo supports foo_interface + { + }; + + home FooHome manages Foo + { + }; + + component Bar + { + }; + + home BarHome : FooHome manages Bar + { + }; + +}; diff --git a/modules/CIAO/tests/IDL3/Homes/Inheritance/Inheritance.mpc b/modules/CIAO/tests/IDL3/Homes/Inheritance/Inheritance.mpc new file mode 100644 index 00000000000..6faf9f0b6cc --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Inheritance/Inheritance.mpc @@ -0,0 +1,17 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -n Inheritance" + +project(Inheritance_stub): ciao_client_dnc { + + sharedname = Inheritance_stub + idlflags += -Wb,stub_export_macro=INHERITANCE_STUB_Export -Wb,stub_export_include=Inheritance_stub_export.h -Wb,skel_export_macro=INHERITANCE_SVNT_Export -Wb,skel_export_include=Inheritance_svnt_export.h + dynamicflags = INHERITANCE_STUB_BUILD_DLL + + IDL_Files { + Inheritance.idl + } + + Source_Files { + InheritanceC.cpp + } +} diff --git a/modules/CIAO/tests/IDL3/Homes/Inheritance/Inheritance_stub_export.h b/modules/CIAO/tests/IDL3/Homes/Inheritance/Inheritance_stub_export.h new file mode 100644 index 00000000000..e5bf83d5f7f --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Inheritance/Inheritance_stub_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl INHERITANCE_STUB +// ------------------------------ +#ifndef INHERITANCE_STUB_EXPORT_H +#define INHERITANCE_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (INHERITANCE_STUB_HAS_DLL) +# define INHERITANCE_STUB_HAS_DLL 1 +#endif /* ! INHERITANCE_STUB_HAS_DLL */ + +#if defined (INHERITANCE_STUB_HAS_DLL) && (INHERITANCE_STUB_HAS_DLL == 1) +# if defined (INHERITANCE_STUB_BUILD_DLL) +# define INHERITANCE_STUB_Export ACE_Proper_Export_Flag +# define INHERITANCE_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define INHERITANCE_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* INHERITANCE_STUB_BUILD_DLL */ +# define INHERITANCE_STUB_Export ACE_Proper_Import_Flag +# define INHERITANCE_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define INHERITANCE_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* INHERITANCE_STUB_BUILD_DLL */ +#else /* INHERITANCE_STUB_HAS_DLL == 1 */ +# define INHERITANCE_STUB_Export +# define INHERITANCE_STUB_SINGLETON_DECLARATION(T) +# define INHERITANCE_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* INHERITANCE_STUB_HAS_DLL == 1 */ + +// Set INHERITANCE_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (INHERITANCE_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define INHERITANCE_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define INHERITANCE_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !INHERITANCE_STUB_NTRACE */ + +#if (INHERITANCE_STUB_NTRACE == 1) +# define INHERITANCE_STUB_TRACE(X) +#else /* (INHERITANCE_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define INHERITANCE_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (INHERITANCE_STUB_NTRACE == 1) */ + +#endif /* INHERITANCE_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Homes/Inheritance/Inheritance_svnt_export.h b/modules/CIAO/tests/IDL3/Homes/Inheritance/Inheritance_svnt_export.h new file mode 100644 index 00000000000..fa4e1c0026b --- /dev/null +++ b/modules/CIAO/tests/IDL3/Homes/Inheritance/Inheritance_svnt_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl INHERITANCE_SVNT +// ------------------------------ +#ifndef INHERITANCE_SVNT_EXPORT_H +#define INHERITANCE_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (INHERITANCE_SVNT_HAS_DLL) +# define INHERITANCE_SVNT_HAS_DLL 1 +#endif /* ! INHERITANCE_SVNT_HAS_DLL */ + +#if defined (INHERITANCE_SVNT_HAS_DLL) && (INHERITANCE_SVNT_HAS_DLL == 1) +# if defined (INHERITANCE_SVNT_BUILD_DLL) +# define INHERITANCE_SVNT_Export ACE_Proper_Export_Flag +# define INHERITANCE_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define INHERITANCE_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* INHERITANCE_SVNT_BUILD_DLL */ +# define INHERITANCE_SVNT_Export ACE_Proper_Import_Flag +# define INHERITANCE_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define INHERITANCE_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* INHERITANCE_SVNT_BUILD_DLL */ +#else /* INHERITANCE_SVNT_HAS_DLL == 1 */ +# define INHERITANCE_SVNT_Export +# define INHERITANCE_SVNT_SINGLETON_DECLARATION(T) +# define INHERITANCE_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* INHERITANCE_SVNT_HAS_DLL == 1 */ + +// Set INHERITANCE_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (INHERITANCE_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define INHERITANCE_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define INHERITANCE_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !INHERITANCE_SVNT_NTRACE */ + +#if (INHERITANCE_SVNT_NTRACE == 1) +# define INHERITANCE_SVNT_TRACE(X) +#else /* (INHERITANCE_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define INHERITANCE_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (INHERITANCE_SVNT_NTRACE == 1) */ + +#endif /* INHERITANCE_SVNT_EXPORT_H */ + +// End of auto generated file. |