#include <ctypes.h>
Inheritance diagram for cClassRegister:
Each instance is a factory for a particular class: it knows how to create an object of that class.
Register_Class() macro
Public Member Functions | |
Constructors, destructor, assignment. | |
cClassRegister (const cClassRegister &c) | |
cClassRegister (const char *name, cPolymorphic *(*f)()) | |
virtual | ~cClassRegister () |
cClassRegister & | operator= (const cClassRegister &) |
Redefined cObject member functions. | |
virtual cPolymorphic * | dup () const |
Factory function. | |
cPolymorphic * | createOne () const |
|
Copy constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Creates an instance of a particular class by calling the creator function. The result has to be cast to the appropriate type (preferably by dynamic_cast or check_and_cast). |
|
Creates and returns an exact copy of this object. See cObject for more details. Reimplemented from cObject. |
|
Assignment is not supported by this class: this method throws a cRuntimeError when called.
|