blob: 9c7e0bb7de89d9c82d6f04c0a151b5e0363ff4bf (
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
47
48
49
50
|
// $Id$
// Define the classes used with templates in test_dump.cpp
#ifndef __TEST_DUMP_H
#define __TEST_DUMP_H
#include "ace/Dump.h"
#include "ace/OS_NS_stdio.h"
class SOCK
{
public:
SOCK (void) { ACE_REGISTER_OBJECT (SOCK); }
~SOCK (void) { ACE_REMOVE_OBJECT; }
void dump (void) const {
ACE_OS::fprintf (stderr, "hello from SOCK = %lu\n", (u_long) this);
}
// ...
};
class SOCK_Acceptor : public SOCK
{
public:
SOCK_Acceptor (void) { ACE_REGISTER_OBJECT (SOCK_Acceptor); }
~SOCK_Acceptor (void) { ACE_REMOVE_OBJECT; }
void dump (void) const {
ACE_OS::fprintf (stderr, "hello from SOCK_Acceptor = %lu\n", (u_long) this);
}
// ...
};
class SOCK_Stream : public SOCK
{
public:
SOCK_Stream (void) { ACE_REGISTER_OBJECT (SOCK_Stream); }
~SOCK_Stream (void) { ACE_REMOVE_OBJECT; }
void dump (void) const {
ACE_OS::fprintf (stderr, "hello from SOCK_Stream = %lu\n", (u_long) this);
}
// ...
};
#endif /* __TEST_DUMP_H */
|