ACE 8.0.5
Loading...
Searching...
No Matches
ACE_Dumpable_Adapter Class Reference

This class inherits the interface of the abstract ACE_Dumpable class and is instantiated with the implementation of the concrete component class <class Concrete>. More...

#include <Dump_T.h>

Detailed Description

This class inherits the interface of the abstract ACE_Dumpable class and is instantiated with the implementation of the concrete component class <class Concrete>.

This design is similar to the Adapter and Decorator patterns from the ``Gang of Four'' book. Note that <class Concrete> need not inherit from a common class since ACE_Dumpable provides the uniform virtual interface! */ template <class Concrete> class ACE_Dumpable_Adapter : public ACE_Dumpable { public: ACE_Dumpable_Adapter (const Concrete *t); ~ACE_Dumpable_Adapter ();

/ Concrete dump method (simply delegates to the dump() method of / <class Concrete>). virtual void dump () const;

/ Delegate to methods in the Concrete class. Concrete *operator->() const;

private: / Pointer to this of <class Concrete>. const Concrete *this_; };

Some useful macros for conditionally compiling this feature...

#define ACE_REGISTER_OBJECT(CLASS) \ \

#define ACE_REMOVE_OBJECT \ \

/* ACE_NDEBUG


The documentation for this class was generated from the following file: