summaryrefslogtreecommitdiff
path: root/examples/Misc/test_dump.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-01 08:00:34 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-01 08:00:34 +0000
commitd9661aebab28abc0ec4fb1e716170d347d56c168 (patch)
treeecb671ab4b8e299bf5cbb8b2dfeed8a49b65fc06 /examples/Misc/test_dump.cpp
parentea0d28240863caf437a18071bfd03e7b146c5ade (diff)
downloadATCD-unlabeled-4.3.2.tar.gz
This commit was manufactured by cvs2svn to create branchunlabeled-4.3.2
'unlabeled-4.3.2'.
Diffstat (limited to 'examples/Misc/test_dump.cpp')
-rw-r--r--examples/Misc/test_dump.cpp71
1 files changed, 0 insertions, 71 deletions
diff --git a/examples/Misc/test_dump.cpp b/examples/Misc/test_dump.cpp
deleted file mode 100644
index 4a736efd2cd..00000000000
--- a/examples/Misc/test_dump.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-// The following code illustrates how the ACE_Dumpable mechanisms are
-// $Id$
-
-// integrated into ACE components like the SOCK_Acceptor and
-// SOCK_Stream.
-
-#include "ace/Dump.h"
-
-class SOCK
-{
-public:
- SOCK (void) { ACE_REGISTER_OBJECT (SOCK); }
- ~SOCK (void) { ACE_REMOVE_OBJECT; }
-
- void dump (void) const {
- cerr << "hello from SOCK = " << (u_long) this << endl;
- }
-
- // ...
-};
-
-class SOCK_Acceptor : public SOCK
-{
-public:
- SOCK_Acceptor (void) { ACE_REGISTER_OBJECT (SOCK_Acceptor); }
- ~SOCK_Acceptor (void) { ACE_REMOVE_OBJECT; }
-
- void dump (void) const {
- cerr << "hello from SOCK_Acceptor = " << (u_long) this << endl;
- }
-
- // ...
-};
-
-class SOCK_Stream : public SOCK
-{
-public:
- SOCK_Stream (void) { ACE_REGISTER_OBJECT (SOCK_Stream); }
- ~SOCK_Stream (void) { ACE_REMOVE_OBJECT; }
-
- void dump (void) const {
- cerr << "hello from SOCK_Stream = " << (u_long) this << endl;
- }
-
- // ...
-};
-
-int
-main (void)
-{
- SOCK sock;
- // Note that the SOCK superclass is *not* printed.
- SOCK_Stream stream;
- SOCK_Acceptor acceptor;
- ACE_ODB::instance ()->dump_objects ();
- {
- SOCK sock;
- // Note that the SOCK superclass is *not* printed.
- SOCK_Stream stream;
- SOCK_Acceptor acceptor;
- ACE_ODB::instance ()->dump_objects ();
- }
- ACE_ODB::instance ()->dump_objects ();
- return 0;
-}
-
-#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
-template class ACE_Dumpable_Adapter<SOCK_Stream>;
-template class ACE_Dumpable_Adapter<SOCK>;
-template class ACE_Dumpable_Adapter<SOCK_Acceptor>;
-#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */