Loading of nom::Value objects from XML documents using the RapidXml library.
More...
#include <RapidXmlDeserializer.hpp>
|
| | 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.
|
Loading of nom::Value objects from XML documents using the RapidXml library.
[TO BE WRITTEN]
References
- http://sfmlcoder.wordpress.com/2011/05/29/a-lightweight-xml-parser-rapid-xml/
http://www.w3schools.com/xml/xml_attributes.asp
- Todo
- Implement XML comments
- Todo
- Finish implementation of ::serialize_object & related case handling, err handling
Definition at line 61 of file RapidXmlDeserializer.hpp.
◆ SelfType
◆ RapidXmlDeserializer() [1/2]
| nom::RapidXmlDeserializer::RapidXmlDeserializer |
( |
void | | ) |
|
Default constructor; initialize the parser with no additional options.
◆ RapidXmlDeserializer() [2/2]
| nom::RapidXmlDeserializer::RapidXmlDeserializer |
( |
uint32 | options | ) |
|
Construct a parser with a feature set enumeration.
◆ deserialize()
| Value nom::RapidXmlDeserializer::deserialize |
( |
const std::string & | source | ) |
|
|
virtual |
◆ load()
| bool nom::RapidXmlDeserializer::load |
( |
const std::string & | filename, |
|
|
Value & | output ) |
|
virtual |
Restore data from a XML (.xml) file to a nom::Value object.
- Parameters
-
| filename | Absolute file path to data to deserialize from. |
| output | nom::Value container to store resulting data in. |
- Note
- Implements IDeserializer interface.
Implements nom::IValueDeserializer.
◆ read_array()
Internal helper method for un-serialization of array nodes.
◆ options_
| uint32 nom::RapidXmlDeserializer::options_ |
|
private |
The documentation for this class was generated from the following file: