#include <Class.h>
Collaboration diagram for Class:

Public Types | |
| typedef DynamicObject * | CreateFunction ()) |
| Object instantiation function. | |
Public Methods | |
| Class (const string name, const string sup, CreateFunction f) | |
| Constructor. More... | |
| const string & | name () |
| Returns the class name. | |
| DynamicObject * | create () |
| Creates an instance of the class. | |
| bool | isKindOf (Class *aClass) |
| Returns true iff 'this' inherits from aClass. More... | |
| bool | isKindOf (const string super) |
| Returns true iff 'this' inherits from the class with name super. More... | |
Static Public Methods | |
| Class * | find (const string &name) |
| Return the class with name 'name' or NULL. More... | |
| DynamicObject * | Create (const string &name) |
| Create an instance of the class 'name' or NULL. More... | |
|
||||||||||||||||
|
Constructor.
|
|
|
Create an instance of the class 'name' or NULL.
|
|
|
Return the class with name 'name' or NULL.
|
|
|
Returns true iff 'this' inherits from the class with name super. Finds the class with name 'superName' and checks if 'this' inherits from 'superName'.
|
|
|
Returns true iff 'this' inherits from aClass.
|