1
// Framework_Component_DLL.h,v 4.3 2003/11/09 04:12:09 dhinton Exp
3
// ============================================================================
9
// Framework_Component_DLL.h
12
// Define class needed for generating templates. IBM C++ requires this to
13
// be in its own file for auto template instantiation.
16
// Don Hinton <dhinton@ieee.org>
18
// ============================================================================
20
#ifndef ACE_TESTS_FRAMEWORK_COMPONENT_DLL_H
21
#define ACE_TESTS_FRAMEWORK_COMPONENT_DLL_H
23
#include "Framework_Component_DLL_Export.h"
24
#include "ace/Log_Msg.h"
25
#include "ace/Singleton.h"
26
#include "ace/Synch_Traits.h"
28
/// This we will use to test the ACE_Framework_Repository
32
Simple_Service (void);
34
virtual ~Simple_Service (void);
36
//virtual const ACE_TCHAR *dll_name (void);
38
virtual const ACE_TCHAR *name (void);
42
// Adapter that contains the required dll_name() method and
43
// has the "right" name for our DLL.
45
class FWCT_DLL_Singleton_Adapter_T : public TYPE
48
const ACE_TCHAR *dll_name (void)
50
FRAMEWORK_COMPONENT_DLL_TRACE ("FWCT_DLL_Singleton_Adapter_T::dll_name");
51
return ACE_TEXT("Framework_Component_DLL");
55
typedef ACE_DLL_Singleton_T < FWCT_DLL_Singleton_Adapter_T <Simple_Service>,
56
ACE_SYNCH_MUTEX > SS_SINGLETON;
58
#endif /* ACE_TESTS_FRAMEWORK_COMPONENT_TEST_H */