Compile fixes
[ACE_TAO.git] / ACE / tests / Framework_Component_DLL.h
blobf99bbce47773500ea5a8853c10bf577049cf1dc6
2 //=============================================================================
3 /**
4 * @file Framework_Component_DLL.h
6 * Define class needed for generating templates.
8 * @author Don Hinton <dhinton@ieee.org>
9 */
10 //=============================================================================
13 #ifndef ACE_TESTS_FRAMEWORK_COMPONENT_DLL_H
14 #define ACE_TESTS_FRAMEWORK_COMPONENT_DLL_H
16 #include "Framework_Component_DLL_Export.h"
17 #include "ace/Log_Msg.h"
18 #include "ace/Singleton.h"
19 #include "ace/Synch_Traits.h"
21 /// This we will use to test the ACE_Framework_Repository
22 class Simple_Service
24 public:
25 Simple_Service ();
27 virtual ~Simple_Service ();
29 virtual const ACE_TCHAR *name ();
32 // Adapter that contains the required dll_name() method and
33 // has the "right" name for our DLL.
34 template <class TYPE>
35 class FWCT_DLL_Singleton_Adapter_T : public TYPE
37 public:
38 const ACE_TCHAR *dll_name ()
40 FRAMEWORK_COMPONENT_DLL_TRACE ("FWCT_DLL_Singleton_Adapter_T::dll_name");
41 return ACE_TEXT("Framework_Component_DLL");
45 typedef ACE_DLL_Singleton_T < FWCT_DLL_Singleton_Adapter_T <Simple_Service>,
46 ACE_SYNCH_MUTEX > SS_SINGLETON;
48 #endif /* ACE_TESTS_FRAMEWORK_COMPONENT_TEST_H */