MIRA
|
Helper class that is able to hold a complete property tree structure. More...
#include <serialization/PropertyTree.h>
Public Member Functions | |
PropertyTree () | |
Creates an empty tree. More... | |
PropertyTree (PropertyNode *root) | |
Constructs a property tree representation from a given property node and all of its child nodes. More... | |
template<typename Reflector > | |
void | reflect (Reflector &r) |
const PropertyNodeInfo & | getRootNodeInfo () const |
Returns the info for the root node, and therefore allows the user to create a root property node from this root node info manually. More... | |
template<typename PropertyNodeType > | |
PropertyNodeType * | generatePropertyNodes (PropertyNodeType *root=NULL) const |
Reconstructs the property nodes from the given tree structure. More... | |
Helper class that is able to hold a complete property tree structure.
It allows to serialize and deserialize such a structure.
Example for serializing a property tree:
From a property tree, all property nodes can be restored as follows:
|
inline |
Creates an empty tree.
|
inline |
Constructs a property tree representation from a given property node and all of its child nodes.
The property nodes can be recreated from the tree using the generatePropertyNodes() methods.
|
inline |
|
inline |
Returns the info for the root node, and therefore allows the user to create a root property node from this root node info manually.
|
inline |
Reconstructs the property nodes from the given tree structure.
Optionally, the user can specify a previously created root node (e.g. using the info obtained by getRootNodeInfo() )