diff options
Diffstat (limited to 'modules/CIAO/tests/IDL3/Events/Abstract')
4 files changed, 163 insertions, 0 deletions
diff --git a/modules/CIAO/tests/IDL3/Events/Abstract/Abstract.idl b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract.idl new file mode 100644 index 00000000000..15eb50971b3 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract.idl @@ -0,0 +1,38 @@ +// $Id$ +/** + * @file Abstract.idl + * @author Will Otte <wotte@dre.vanderbilt.edu> + * + * Tests the compilation of abstract events. + */ + +#include <Components.idl> + +module AbstractEvents +{ + abstract eventtype foo_event + { + }; + + abstract eventtype InhFoo_event : foo_event + { + }; + + abstract eventtype bar_event + { + }; + + abstract eventtype foobar_event : foo_event, bar_event + { + }; + + // test event multiple inheretance + + eventtype concrete_foo + { + }; + + eventtype concrete_foobar : concrete_foo, foo_event + { + }; +}; diff --git a/modules/CIAO/tests/IDL3/Events/Abstract/Abstract.mpc b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract.mpc new file mode 100644 index 00000000000..e1a4a36cc54 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract.mpc @@ -0,0 +1,17 @@ +// $Id$ +// This file is generated with "generate_component_mpc.pl -n Abstract" + +project(Abstract_stub): ciao_client_dnc { + + sharedname = Abstract_stub + idlflags += -Wb,stub_export_macro=ABSTRACT_STUB_Export -Wb,stub_export_include=Abstract_stub_export.h -Wb,skel_export_macro=ABSTRACT_SVNT_Export -Wb,skel_export_include=Abstract_svnt_export.h + dynamicflags = ABSTRACT_STUB_BUILD_DLL + + IDL_Files { + Abstract.idl + } + + Source_Files { + AbstractC.cpp + } +} diff --git a/modules/CIAO/tests/IDL3/Events/Abstract/Abstract_stub_export.h b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract_stub_export.h new file mode 100644 index 00000000000..43d8e34ee72 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract_stub_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl ABSTRACT_STUB +// ------------------------------ +#ifndef ABSTRACT_STUB_EXPORT_H +#define ABSTRACT_STUB_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (ABSTRACT_STUB_HAS_DLL) +# define ABSTRACT_STUB_HAS_DLL 1 +#endif /* ! ABSTRACT_STUB_HAS_DLL */ + +#if defined (ABSTRACT_STUB_HAS_DLL) && (ABSTRACT_STUB_HAS_DLL == 1) +# if defined (ABSTRACT_STUB_BUILD_DLL) +# define ABSTRACT_STUB_Export ACE_Proper_Export_Flag +# define ABSTRACT_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define ABSTRACT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* ABSTRACT_STUB_BUILD_DLL */ +# define ABSTRACT_STUB_Export ACE_Proper_Import_Flag +# define ABSTRACT_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define ABSTRACT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* ABSTRACT_STUB_BUILD_DLL */ +#else /* ABSTRACT_STUB_HAS_DLL == 1 */ +# define ABSTRACT_STUB_Export +# define ABSTRACT_STUB_SINGLETON_DECLARATION(T) +# define ABSTRACT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* ABSTRACT_STUB_HAS_DLL == 1 */ + +// Set ABSTRACT_STUB_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (ABSTRACT_STUB_NTRACE) +# if (ACE_NTRACE == 1) +# define ABSTRACT_STUB_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define ABSTRACT_STUB_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !ABSTRACT_STUB_NTRACE */ + +#if (ABSTRACT_STUB_NTRACE == 1) +# define ABSTRACT_STUB_TRACE(X) +#else /* (ABSTRACT_STUB_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define ABSTRACT_STUB_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (ABSTRACT_STUB_NTRACE == 1) */ + +#endif /* ABSTRACT_STUB_EXPORT_H */ + +// End of auto generated file. diff --git a/modules/CIAO/tests/IDL3/Events/Abstract/Abstract_svnt_export.h b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract_svnt_export.h new file mode 100644 index 00000000000..53b5032df69 --- /dev/null +++ b/modules/CIAO/tests/IDL3/Events/Abstract/Abstract_svnt_export.h @@ -0,0 +1,54 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl ABSTRACT_SVNT +// ------------------------------ +#ifndef ABSTRACT_SVNT_EXPORT_H +#define ABSTRACT_SVNT_EXPORT_H + +#include "ace/config-all.h" + +#if !defined (ABSTRACT_SVNT_HAS_DLL) +# define ABSTRACT_SVNT_HAS_DLL 1 +#endif /* ! ABSTRACT_SVNT_HAS_DLL */ + +#if defined (ABSTRACT_SVNT_HAS_DLL) && (ABSTRACT_SVNT_HAS_DLL == 1) +# if defined (ABSTRACT_SVNT_BUILD_DLL) +# define ABSTRACT_SVNT_Export ACE_Proper_Export_Flag +# define ABSTRACT_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define ABSTRACT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* ABSTRACT_SVNT_BUILD_DLL */ +# define ABSTRACT_SVNT_Export ACE_Proper_Import_Flag +# define ABSTRACT_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define ABSTRACT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* ABSTRACT_SVNT_BUILD_DLL */ +#else /* ABSTRACT_SVNT_HAS_DLL == 1 */ +# define ABSTRACT_SVNT_Export +# define ABSTRACT_SVNT_SINGLETON_DECLARATION(T) +# define ABSTRACT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* ABSTRACT_SVNT_HAS_DLL == 1 */ + +// Set ABSTRACT_SVNT_NTRACE = 0 to turn on library specific tracing even if +// tracing is turned off for ACE. +#if !defined (ABSTRACT_SVNT_NTRACE) +# if (ACE_NTRACE == 1) +# define ABSTRACT_SVNT_NTRACE 1 +# else /* (ACE_NTRACE == 1) */ +# define ABSTRACT_SVNT_NTRACE 0 +# endif /* (ACE_NTRACE == 1) */ +#endif /* !ABSTRACT_SVNT_NTRACE */ + +#if (ABSTRACT_SVNT_NTRACE == 1) +# define ABSTRACT_SVNT_TRACE(X) +#else /* (ABSTRACT_SVNT_NTRACE == 1) */ +# if !defined (ACE_HAS_TRACE) +# define ACE_HAS_TRACE +# endif /* ACE_HAS_TRACE */ +# define ABSTRACT_SVNT_TRACE(X) ACE_TRACE_IMPL(X) +# include "ace/Trace.h" +#endif /* (ABSTRACT_SVNT_NTRACE == 1) */ + +#endif /* ABSTRACT_SVNT_EXPORT_H */ + +// End of auto generated file. |