Core::Rtti Class Reference
#include <rtti.h>
Detailed Description
Nebula3's runtime type information for one class. Every class derived from Core::RefCounted should use the macros DeclareClass and ImplementClass to properly initialize the runtime type information for the class. This will also automatically register the class with the Core::Factory object to implement object construction from class name string or fourcc code.(C) 2006 RadonLabs GmbH
Public Types | |
| typedef RefCounted *(* | Creator )() |
| define a creation callback function prototype | |
Public Member Functions | |
| Rtti (const char *className, Util::FourCC fcc, Creator creatorFunc, const Core::Rtti *parentClass) | |
| constructor | |
| bool | operator== (const Rtti &rhs) const |
| equality operator | |
| bool | operator!= (const Rtti &rhs) const |
| inequality operator | |
| const Util::String & | GetName () const |
| get class name | |
| Util::FourCC | GetFourCC () const |
| get four character code of class | |
| const Core::Rtti * | GetParent () const |
| get pointer to parent class | |
| RefCounted * | Create () const |
| create an object of this class | |
| bool | IsDerivedFrom (const Rtti &other) const |
| return true if this rtti is equal or derived from to other rtti | |
| bool | IsDerivedFrom (const Util::String &otherClassName) const |
| return true if this rtti is equal or derived from to other rtti, by string | |
| bool | IsDerivedFrom (const Util::FourCC &otherClassFourCC) const |
| return true if this rtti is equal or derived from to other rtti, by fourcc | |