29 #ifndef Pt_Xml_XmlDeserializer_h
30 #define Pt_Xml_XmlDeserializer_h
32 #include <Pt/Xml/Api.h>
33 #include <Pt/Xml/XmlSerializationContext.h>
34 #include <Pt/Xml/XmlFormatter.h>
35 #include <Pt/Deserializer.h>
52 this->
reset( &_xmlcontext );
61 this->
reset( &_xmlcontext );
83 return _formatter.
reader();
98 #endif // Pt_Xml_XmlDeserializer_h
XmlDeserializer(XmlReader &reader)
Construct to use an XmlReader.
Definition: XmlDeserializer.h:58
Reads XML as a Stream of XML Nodes.
Definition: XmlReader.h:79
Deserializes a set of types.
Definition: Deserializer.h:44
Serialization context for XML serialization.
Definition: XmlSerializationContext.h:45
void setFormatter(Formatter &formatter)
Sets the formatter.
void attach(XmlReader &reader)
Attach to an XmlReader.
Definition: XmlDeserializer.h:67
XmlDeserializer()
Default Constructor.
Definition: XmlDeserializer.h:50
void detach()
Detach from its XmlReader.
Definition: XmlDeserializer.h:74
Deserialize objects and data from XML.
Definition: XmlDeserializer.h:45
XmlReader * reader()
Returns the attached XmlReader or a nullptr.
Definition: XmlDeserializer.h:81
void reset(SerializationContext *context)
Clears and resets the context.