#include <object.h>

Rules for subclasses:
Public Member Functions | |
| Object (const char *name) | |
| virtual int | GetInstanceSize () const |
| Class * | GetClass () const |
| bool | IsA (const Class *) const |
| bool | IsA (const char *) const |
| bool | IsInstanceOf (const Class *) const |
| bool | Dispatch (Cmd *) |
| void | GetCmdProtos (HashList *) |
Protected Member Functions | |
| virtual | ~Object () |
| void | SetClass (Class *) |
| virtual const char * | GetGroupName () |
Protected Attributes | |
| KernelServer * | kernel_server |
| Pointer to kernel server. | |
| Class * | my_class |
| Pointer to my class. | |
Friends | |
| class | Class |
| Object::Object | ( | const char * | id | ) |
Constructor. DONT CALL DIRECTLY, USE KernelServer::New() INSTEAD!
| Object::~Object | ( | ) | [protected, virtual] |
Destructor. DONT CALL DIRECTLY, USE Release() INSTEAD.
| int Object::GetInstanceSize | ( | ) | const [virtual] |
Get byte size of this instance. For more accuracy, subclasses should add the size of allocated memory.
| Class * Object::GetClass | ( | ) | const [inline] |
Returns pointer to my class object.
| bool Object::IsA | ( | const Class * | cl | ) | const [inline] |
Returns true if object is part of class hierarchy.
| bool Object::IsA | ( | const char * | class_name | ) | const |
Checks if a class of the given name is part of the class hierarchy for this object.
| bool Object::IsInstanceOf | ( | const Class * | cl | ) | const [inline] |
Returns true if object is instance of class.
| void Object::GetCmdProtos | ( | HashList * | cmd_list | ) |
Returns cmd proto list from object.
| void Object::SetClass | ( | Class * | cl | ) | [inline, protected] |
Sets pointer to my class object.
| const char * Object::GetGroupName | ( | ) | [protected, virtual] |
Reimplemented from Serialized.
friend class Class [friend] |
KernelServer* Object::kernel_server [protected] |
Pointer to kernel server.
Class* Object::my_class [protected] |
Pointer to my class.
1.5.3