#include <uclass.hpp>
Inheritance diagram for ubit::UClass:
Public Member Functions | |
const UStr & | name () const |
returns the class name. | |
const UStr & | getName () const |
returns the class name. | |
int | id () const |
returns the class ID. | |
int | getId () const |
returns the class ID. | |
virtual bool | isInstance (UObject &obj) const |
checks if obj derives from this class. | |
virtual UObject * | newInstance () const |
creates a new instance of the corresponding C++ class (or null if the class is abstract). | |
virtual UStyle * | newStyle () const |
creates a new instance of the style of this class (or null if not applicable). | |
virtual UMask | getModes () const |
returns modes that are specific to this class. | |
Protected Member Functions | |
UClass (const char *name) | |
UClass (const UStr &name) | |
virtual void | initClass () |
Ubit classes make it possible to associate useful data to each UBrick subclass such as: