#include <mclass.h>
Inheritance diagram for Class:
Public Methods | |
Class () | |
void | addparent (const char *nam) |
const String & | getname () const |
void | printclassinfo (FILE *out=stdout) const |
bool | issameclass (const Object &other) const |
Object * | getInstance () const |
Contains a number of static variables that help to build a more or less complete run-time class hierarchy.
To get into the run-time hierarchy a class must implement the decl_dynamic(class) and impl_dynamic(class,parent) macros. The former is given first in a class declaration in a header file, and the latter is given in a source file (to create a global class object).
Definition at line 58 of file mclass.h.
|
Empty constructor shouldn't be called ever....
|
|
Adds a parent to the class with the given name.
|
|
Dynamically creates an instance of the class.
Definition at line 88 of file mclass.h. References GetClassInstance::getInstance(). |
|
Returns the name of the class.
|
|
Returns true if the other object is of this class.
|
|
Prints out the class information.
Definition at line 91 of file mclass.cc. References Array< String >::size(). |