#include <Pt/Deserializer.h>
Deserializes a set of types.
Inherits NonCopyable.
Inherited by XmlDeserializer.
Public Member Functions | |
| Deserializer () | |
| Default constructor. | |
| virtual | ~Deserializer () |
| Destructor. | |
| SerializationContext * | context () |
| Returns the used context. | |
| void | reset (SerializationContext *context) |
| Clears and resets the context. | |
| Formatter * | formatter () |
| Returns the used formatter to use. | |
| void | setFormatter (Formatter &formatter) |
| Sets the formatter. | |
| void | clear () |
| Clears all content. | |
| template<typename T > | |
| void | begin (T &t) |
| Starts parsing of an object. More... | |
| bool | advance () |
| Advances parsing of an object. More... | |
| void | finish () |
| Finishes parsing of an object. More... | |
| void | fixup () |
| Fixes up references. More... | |
| void begin | ( | T & | t | ) |
| bool advance | ( | ) |
| void finish | ( | ) |
| void fixup | ( | ) |
Weak references between the parsed objects can be fixed up calling this method. Fixup has to happen after all objects have been parsed so references can be forward and backward in the object stream.