A base class for objects that can be stored and restored using DynamicObject. More...
Public Member Functions | |
virtual void | fromDynamicObject (const var &objectData) |
Restores the state of this object from a dynamic object. More... | |
virtual Identifier | getDefaultablePropertyId (int i) const |
Overwrite this and return the Identifier for the given property index. More... | |
virtual var | getDefaultProperty (int id) const |
Overwrite this and get the default property. More... | |
virtual int | getNumDefaultableProperties () const |
Overwrite this and return the number of properties that are defaultable. More... | |
void | resetObject (DynamicObject *objectToClear) |
Clears the given object and sets all defaultable properties to their initial values. More... | |
virtual var | toDynamicObject () const |
Writes the state of this object into a dynamic object. More... | |
A base class for objects that can be stored and restored using DynamicObject.
|
inlinevirtual |
Restores the state of this object from a dynamic object.
|
inlinevirtual |
Overwrite this and return the Identifier for the given property index.
You might want to use the macro RETURN_DEFAULT_PROPERTY_ID(idToCheck, name) with a named enum for this.
|
inlinevirtual |
Overwrite this and get the default property.
|
inlinevirtual |
Overwrite this and return the number of properties that are defaultable.
|
inline |
Clears the given object and sets all defaultable properties to their initial values.
|
inlinevirtual |
Writes the state of this object into a dynamic object.