![]() |
nomlib
|
Loading of nom::Value objects from XML documents using the RapidXml library. More...
#include <RapidXmlDeserializer.hpp>
Public Types | |
| typedef RapidXmlDeserializer | SelfType |
| Public Types inherited from nom::IValueDeserializer | |
| typedef IValueDeserializer | self_type |
| typedef self_type * | raw_ptr |
| typedef std::unique_ptr< self_type > | unique_ptr |
| typedef std::shared_ptr< self_type > | shared_ptr |
Public Member Functions | |
| RapidXmlDeserializer (void) | |
| Default constructor; initialize the parser with no additional options. | |
| ~RapidXmlDeserializer (void) | |
| Destructor. | |
| RapidXmlDeserializer (uint32 options) | |
| Construct a parser with a feature set enumeration. | |
| Value | deserialize (const std::string &source) |
| Parse XML data to a nom::Value object. | |
| bool | load (const std::string &filename, Value &output) |
| Restore data from a XML (.xml) file to a nom::Value object. | |
Private Member Functions | |
| bool | read (const std::string &input, Value &dest) const |
| bool | read_value (const rapidxml::xml_node< char > &object, Value &dest) const |
| bool | read_array (const rapidxml::xml_node< char > *object, Value &dest) const |
| Internal helper method for un-serialization of array nodes. | |
| bool | read_object (const rapidxml::xml_node< char > *node, Value &dest) const |
| Internal helper method for un-serialization of object nodes. | |
Private Attributes | |
| uint32 | options_ |
Loading of nom::Value objects from XML documents using the RapidXml library.
[TO BE WRITTEN]
References
Definition at line 62 of file RapidXmlDeserializer.hpp.
| typedef RapidXmlDeserializer nom::RapidXmlDeserializer::SelfType |
Definition at line 65 of file RapidXmlDeserializer.hpp.
| nom::RapidXmlDeserializer::RapidXmlDeserializer | ( | void | ) |
Default constructor; initialize the parser with no additional options.
| nom::RapidXmlDeserializer::RapidXmlDeserializer | ( | uint32 | options | ) |
Construct a parser with a feature set enumeration.
|
virtual |
Parse XML data to a nom::Value object.
| source | std::string containing valid XML. |
Implements nom::IValueDeserializer.
|
virtual |
Restore data from a XML (.xml) file to a nom::Value object.
| filename | Absolute file path to data to deserialize from. |
| output | nom::Value container to store resulting data in. |
Implements nom::IValueDeserializer.
|
private |
Internal helper method for un-serialization of array nodes.
|
private |
Definition at line 100 of file RapidXmlDeserializer.hpp.