ubit
Public Member Functions | List of all members
ubit::UDefaultAttribute::MetaClass Struct Reference
Inheritance diagram for ubit::UDefaultAttribute::MetaClass:
ubit::UClass

Public Member Functions

 MetaClass (const UStr &classname)
 
virtual bool isInstance (UObject &obj) const
 returns true if this 'object' derives from this class.
 
virtual UDefaultAttributenewInstance () const
 creates a new instance of the corresponding class (if applicable). More...
 
- Public Member Functions inherited from ubit::UClass
 UClass (const char *name)
 
 UClass (const UStr &name)
 
const UStrgetName () const
 returns the class name.
 
unsigned int getNo () const
 returns the class #. More...
 
virtual int getParseModes () const
 returns an ORed combination of the parse modes (0 if none).
 
virtual UStylenewStyle () const
 creates a new instance of the style of this class (if applicable). More...
 
UStyleobtainStyle () const
 returns the style prototype that is associated to this class. More...
 
UAttrListgetAttributes () const
 returns current class properties. More...
 
void setAttributes (UAttrList *alist) const
 changes the class properties. More...
 

Additional Inherited Members

- Public Types inherited from ubit::UClass
enum  ParseModes { EMPTY_ELEMENT = 1<<0, DONT_PARSE_CONTENT = 1<<1, PRESERVE_SPACES = 1<<2 }
 Parse Modes returned by UClass::getParseModes(): More...
 

Member Function Documentation

§ newInstance()

virtual UDefaultAttribute* ubit::UDefaultAttribute::MetaClass::newInstance ( ) const
inlinevirtual

creates a new instance of the corresponding class (if applicable).

Ubit classes that derive from UObject should have an associated UClass that redefines this method.

Reimplemented from ubit::UClass.


The documentation for this struct was generated from the following file: