Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef ACE_DUMP_T_H
00015 #define ACE_DUMP_T_H
00016 #include "ace/pre.h"
00017
00018 #include "ace/Dump.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 template <class Concrete>
00040 class ACE_Dumpable_Adapter : public ACE_Dumpable
00041 {
00042 public:
00043
00044 ACE_Dumpable_Adapter (const Concrete *t);
00045 ~ACE_Dumpable_Adapter (void);
00046
00047
00048
00049 virtual void dump (void) const;
00050
00051
00052 Concrete *operator->() const;
00053
00054 private:
00055
00056 const Concrete *this_;
00057 };
00058
00059 ACE_END_VERSIONED_NAMESPACE_DECL
00060
00061
00062 #if defined (ACE_NDEBUG)
00063 #define ACE_REGISTER_OBJECT(CLASS)
00064 #define ACE_REMOVE_OBJECT
00065 #else
00066 #define ACE_REGISTER_OBJECT(CLASS) \
00067 ACE_ODB::instance ()->register_object \
00068 (new ACE_Dumpable_Adapter<CLASS> (this));
00069 #define ACE_REMOVE_OBJECT \
00070 ACE_ODB::instance ()->remove_object \
00071 ((void *) this);
00072 #endif
00073
00074 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
00075 #include "ace/Dump_T.cpp"
00076 #endif
00077
00078 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
00079 #pragma implementation ("Dump_T.cpp")
00080 #endif
00081
00082 #include "ace/post.h"
00083 #endif