#include <TypeAwareObject.h>

Public Member Functions | |
| virtual const std::string & | getObjectType () const =0 |
| virtual bool | isKindOf (const std::string &className) const =0 |
Protected Member Functions | |
| virtual | ~TypeAwareObject () |
TypeAwareObject is an interface used to provide RTTI-like capability without having to compile with RTTI overhead. It provides several methods that must be implemented by all classes derived from it, even if intermediate parent classes have already implemented the obligations.
Definition at line 24 of file TypeAwareObject.h.
| virtual TypeAwareObject::~TypeAwareObject | ( | ) | [protected, virtual] |
This should not be deleted directly.
It should be deleted according to the instructions provided for the relevant subclass.
Definition at line 54 of file TypeAwareObject.h.
| virtual const std::string& TypeAwareObject::getObjectType | ( | ) | const [pure virtual] |
Returns a string containing the class name.
Must be implemented by all subclasses.
Implemented in SubjectAdapter.
| virtual bool TypeAwareObject::isKindOf | ( | const std::string & | className | ) | const [pure virtual] |
Compares an incoming argument string against either the object's true class name or one of its parent (inherited) class names.
| className | Name of the class that is to be searched for in the object's inheritance hierarchy. |
Implemented in SubjectAdapter.