diff options
Diffstat (limited to 'modules/CIAO/tests/IDL3/Homes/Finder')
4 files changed, 155 insertions, 0 deletions
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. |