Merge branch 'master' into jwi-bcc64xsingletonwarning
[ACE_TAO.git] / ACE / examples / Misc / test_dump.h
blob6d4a3a5c6c820d991e118fab69f16d8fa8602802
1 // Define the classes used with templates in test_dump.cpp
3 #ifndef __TEST_DUMP_H
4 #define __TEST_DUMP_H
6 #include "ace/Dump.h"
7 #include "ace/Log_Msg.h"
8 #include "ace/OS_NS_stdio.h"
10 class SOCK
12 public:
13 SOCK () { ACE_REGISTER_OBJECT (SOCK); }
14 ~SOCK () { ACE_REMOVE_OBJECT; }
16 void dump () const {
17 ACE_DEBUG ((LM_DEBUG, "hello from SOCK = %@\n", this));
20 // ...
23 class SOCK_Acceptor : public SOCK
25 public:
26 SOCK_Acceptor () { ACE_REGISTER_OBJECT (SOCK_Acceptor); }
27 ~SOCK_Acceptor () { ACE_REMOVE_OBJECT; }
29 void dump () const {
30 ACE_DEBUG ((LM_DEBUG, "hello from SOCK_Acceptor = %@\n", this));
33 // ...
36 class SOCK_Stream : public SOCK
38 public:
39 SOCK_Stream () { ACE_REGISTER_OBJECT (SOCK_Stream); }
40 ~SOCK_Stream () { ACE_REMOVE_OBJECT; }
42 void dump () const {
43 ACE_DEBUG ((LM_DEBUG, "hello from SOCK_Stream = %@\n", this));
46 // ...
49 #endif /* __TEST_DUMP_H */