summaryrefslogtreecommitdiff
path: root/tests/DLL_Test.h
blob: bbdc085c5204bbd88c5eee2fef8e2de4f17318ff (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
// $Id$

// This file has the class definitions needed for template generation in
// DLL_Test.cpp.  They have to be in a separate file so AIX xlC can
// find them at auto-instantiate time.

#ifndef ACE_DLL_TEST_H
#define ACE_DLL_TEST_H

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "ace/Log_Msg.h"

class Hello
{
  // = TITLE
  //    The Hello class in the dynamically linkable library.
  //
  // = DESCRIPTION
  //    This class is used in this example to show how a library can
  //    be loaded on demand and its methods called on getting the
  //    symbols from the library.
public:

  void say_hello (void)
    {
      ACE_DEBUG ((LM_DEBUG,
                  ASYS_TEXT ("Hello\n")));
    }

  void say_next (void)
    {
      ACE_DEBUG ((LM_DEBUG,
                  ASYS_TEXT ("How are you?\n")));
    }
};

#endif /* ACE_MAP_TEST_H */