~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to tests/Framework_Component_DLL.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Framework_Component_DLL.h,v 4.3 2003/11/09 04:12:09 dhinton Exp
2
 
 
3
 
// ============================================================================
4
 
//
5
 
// = LIBRARY
6
 
//    tests
7
 
//
8
 
// = FILENAME
9
 
//    Framework_Component_DLL.h
10
 
//
11
 
// = DESCRIPTION
12
 
//    Define class needed for generating templates. IBM C++ requires this to
13
 
//    be in its own file for auto template instantiation.
14
 
//
15
 
// = AUTHOR
16
 
//    Don Hinton <dhinton@ieee.org>
17
 
//
18
 
// ============================================================================
19
 
 
20
 
#ifndef ACE_TESTS_FRAMEWORK_COMPONENT_DLL_H
21
 
#define ACE_TESTS_FRAMEWORK_COMPONENT_DLL_H
22
 
 
23
 
#include "Framework_Component_DLL_Export.h"
24
 
#include "ace/Log_Msg.h"
25
 
#include "ace/Singleton.h"
26
 
#include "ace/Synch_Traits.h"
27
 
 
28
 
/// This  we will use to test the ACE_Framework_Repository
29
 
class Simple_Service
30
 
{
31
 
public:
32
 
  Simple_Service (void);
33
 
 
34
 
  virtual ~Simple_Service (void);
35
 
 
36
 
  //virtual const ACE_TCHAR *dll_name (void);
37
 
 
38
 
  virtual const ACE_TCHAR *name (void);
39
 
 
40
 
};
41
 
 
42
 
// Adapter that contains the required dll_name() method and
43
 
// has the "right" name for our DLL.
44
 
template <class TYPE>
45
 
class FWCT_DLL_Singleton_Adapter_T : public TYPE
46
 
{
47
 
public:
48
 
  const ACE_TCHAR *dll_name (void)
49
 
  {
50
 
    FRAMEWORK_COMPONENT_DLL_TRACE ("FWCT_DLL_Singleton_Adapter_T::dll_name");
51
 
    return ACE_TEXT("Framework_Component_DLL");
52
 
  }
53
 
};
54
 
 
55
 
typedef ACE_DLL_Singleton_T < FWCT_DLL_Singleton_Adapter_T <Simple_Service>,
56
 
                              ACE_SYNCH_MUTEX > SS_SINGLETON;
57
 
 
58
 
#endif /* ACE_TESTS_FRAMEWORK_COMPONENT_TEST_H */