![]() |
XII Release 0.1.0
|
This class is used to convert xiiAbstractObjectGraphs into native C++ objects. It is used by the xiiDocument system to deserialize documents into native objects. More...
#include <RttiConverter.h>
Public Member Functions | |
| xiiRttiConverterReader (const xiiAbstractObjectGraph *pGraph, xiiRttiConverterContext *pContext) | |
| Creates a new converter that reads from the given graph and uses the given context. The converter will read the graph and create native objects for each node in the graph. The properties of the objects will be set according to the values stored in the child nodes of each node. If a node has child nodes that represent sub-objects that are not currently instantiated, but only exist as graph nodes, they will be enqueued for later creation and added as child nodes with their guid as node name. | |
| xiiInternal::NewInstance< void > | CreateObjectFromNode (const xiiAbstractObjectNode *pNode) |
| Creates a new object for the given node and type. The type of the object is determined by the given RTTI type. The properties of the object will be set according to the values stored in the child nodes of the given node. If the node has child nodes that represent sub-objects that are not currently instantiated, but only exist as graph nodes, they will be enqueued for later creation and added as child nodes with their guid as node name. | |
| void | ApplyPropertiesToObject (const xiiAbstractObjectNode *pNode, const xiiRTTI *pRtti, void *pObject) |
| Sets the properties of the given object according to the values stored in the child nodes of the given node. The type of the object is determined by the given RTTI type. If the node has child nodes that represent sub-objects that are not currently instantiated, but only exist as graph nodes, they will be enqueued for later creation and added as child nodes with their guid as node name. | |
This class is used to convert xiiAbstractObjectGraphs into native C++ objects. It is used by the xiiDocument system to deserialize documents into native objects.
| xiiRttiConverterReader::xiiRttiConverterReader | ( | const xiiAbstractObjectGraph * | pGraph, |
| xiiRttiConverterContext * | pContext ) |
Creates a new converter that reads from the given graph and uses the given context. The converter will read the graph and create native objects for each node in the graph. The properties of the objects will be set according to the values stored in the child nodes of each node. If a node has child nodes that represent sub-objects that are not currently instantiated, but only exist as graph nodes, they will be enqueued for later creation and added as child nodes with their guid as node name.
Copyright (c) Theophilus Eriata. All Rights Reserved.