Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Misc / test_dump.cpp
blob9b8757f996380e44391ccc89579ea3cc3a93202c
1 // The following code illustrates how the ACE_Dumpable mechanisms are
2 // integrated into ACE components like the SOCK_Acceptor and
3 // SOCK_Stream.
5 #include "ace/OS_main.h"
6 #include "ace/Dump.h"
7 #include "test_dump.h"
9 #include "ace/Reactor.h"
12 int
13 ACE_TMAIN (int, ACE_TCHAR *[])
15 SOCK outer_sock;
16 // Note that the SOCK superclass is *not* printed.
17 SOCK_Stream outer_stream;
18 SOCK_Acceptor outer_acceptor;
19 ACE_ODB::instance ()->dump_objects ();
21 SOCK inner_sock;
22 // Note that the SOCK superclass is *not* printed.
23 SOCK_Stream inner_stream;
24 SOCK_Acceptor inner_acceptor;
25 ACE_ODB::instance ()->dump_objects ();
27 ACE_ODB::instance ()->dump_objects ();
28 return 0;