#include <mlBase.h>

Public Member Functions | |
| Base () | |
| Constructor. | |
| virtual | ~Base () |
| Destructor. | |
| virtual char * | getPersistentState () const |
| Returns a C string describing the object's internal state. | |
| virtual void | setPersistentState (const char *) |
Restores the object's internal state from a string that had been previously generated using getPersistentState(). | |
| virtual void | clearPersistentState (char *) const |
Disposes a string previously allocated by getPersistentState(). | |
| virtual void | addStateToTree (TreeNode *) const |
| Attaches the object state as children of the given parent node. | |
| virtual void | readStateFromTree (TreeNode *) |
| Reads the object state from the children of the given parent node. | |
| ML_SET_ADDSTATE_VERSION (0) | |
| Set addStateToTree version number that can be accessed via getAddStateVersion(). | |
| virtual Base * | deepCopy () const |
| Creates a deep copy of the given object. | |
| bool | isOfAllowedType (const std::vector< const RuntimeType * > &types) const |
| Check if this object's type is equal to or derived from one of the types given in the argument. | |
| virtual bool | isRefCountedBase () const |
| Returns if the instance is derived from RefCountedBase. | |
Objects of class Base
BaseField)
Remark: This class is base class for Module and all derived modules.
Definition at line 49 of file mlBase.h.
| ml::Base::Base | ( | ) |
Constructor.
| virtual ml::Base::~Base | ( | ) | [virtual] |
Destructor.
| virtual void ml::Base::addStateToTree | ( | TreeNode * | ) | const [inline, virtual] |
| virtual void ml::Base::clearPersistentState | ( | char * | ) | const [inline, virtual] |
Disposes a string previously allocated by getPersistentState().
| virtual Base* ml::Base::deepCopy | ( | ) | const [inline, virtual] |
| virtual char* ml::Base::getPersistentState | ( | ) | const [inline, virtual] |
Returns a C string describing the object's internal state.
The memory for the string will be allocated here and has to be deallocated using clearPersistentState().
| bool ml::Base::isOfAllowedType | ( | const std::vector< const RuntimeType * > & | types | ) | const |
Check if this object's type is equal to or derived from one of the types given in the argument.
This method will also return true if the vector is empty, since this denotes that any type is allowed.
| virtual bool ml::Base::isRefCountedBase | ( | ) | const [inline, virtual] |
| ml::Base::ML_SET_ADDSTATE_VERSION | ( | 0 | ) |
Set addStateToTree version number that can be accessed via getAddStateVersion().
| virtual void ml::Base::readStateFromTree | ( | TreeNode * | ) | [inline, virtual] |
| virtual void ml::Base::setPersistentState | ( | const char * | ) | [inline, virtual] |
Restores the object's internal state from a string that had been previously generated using getPersistentState().
1.5.8