summaryrefslogtreecommitdiff
path: root/tests/Framework_Component_Test.h
blob: 2c6cb3d87e01e849705b8203e3a40e8ca7555588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// $Id$

// ============================================================================
//
// = LIBRARY
//    tests
//
// = FILENAME
//    Framework_Component_Test.h
//
// = DESCRIPTION
//    Define class needed for generating templates. IBM C++ requires this to
//    be in its own file for auto template instantiation.
//
// = AUTHOR
//    Don Hinton <dhinton@ieee.org>
//
// ============================================================================

#ifndef ACE_TESTS_FRAMEWORK_COMPONENT_TEST_H
#define ACE_TESTS_FRAMEWORK_COMPONENT_TEST_H

#include "ace/Log_Msg.h"

/// This is a singleton we will use to test the ACE_Framework_Repository
class My_Singleton
{
public:
  My_Singleton (void)
    {
      ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("My_Singleton::ctor\n")));
    }
  virtual ~My_Singleton (void)
    {
      ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("My_Singleton::dtor\n")));
    }

  static My_Singleton * instance (void);

  static void close_singleton (void);

private:
  static My_Singleton *instance_;
};

#endif /* ACE_TESTS_FRAMEWORK_COMPONENT_TEST_H */