Number of spaces to pass to RapidXml for indention.
More...
#include <RapidXmlSerializer.hpp>
|
| | RapidXmlSerializer (void) |
| | Default constructor; initialize the writer with human friendly output.
|
|
| ~RapidXmlSerializer (void) |
| | Destructor.
|
|
| RapidXmlSerializer (enum SerializerOptions options) |
| | Construct a parser with a feature set enumeration.
|
| std::string | serialize (const Value &source) |
| | Output a nom::Value object to a string.
|
| bool | save (const Value &source, const std::string &filename) |
| | Save nom::Value values to XML nodes.
|
|
|
bool | write (const Value &source, rapidxml::xml_document< char > &dest) const |
|
bool | write_value (const Value &object, const std::string &key, rapidxml::xml_document< char > &doc, rapidxml::xml_node< char > *parent) const |
|
bool | write_array (const Value &object, const std::string &key, rapidxml::xml_document< char > &doc, rapidxml::xml_node< char > *parent) const |
| | Internal helper method for serialization of array nodes.
|
|
bool | write_object (const Value &object, const std::string &key, rapidxml::xml_document< char > &doc, rapidxml::xml_node< char > *parent) const |
| | Internal helper method for serialization of object nodes.
|
|
const char * | stralloc (const std::string &buffer, rapidxml::xml_document< char > &dest) const |
| void | append_decl (rapidxml::xml_document< char > &dest) const |
| | Add the top-level XML node declaring the version and encoding used (think: DOCTYPE).
|
Number of spaces to pass to RapidXml for indention.
- Todo
- Implement feature
Saving of nom::Value objects to 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 68 of file RapidXmlSerializer.hpp.
◆ SelfType
◆ RapidXmlSerializer()
| nom::RapidXmlSerializer::RapidXmlSerializer |
( |
void | | ) |
|
Default constructor; initialize the writer with human friendly output.
◆ append_decl()
Add the top-level XML node declaring the version and encoding used (think: DOCTYPE).
- Parameters
-
| dest | The document to append the declaration onto. |
◆ save()
| bool nom::RapidXmlSerializer::save |
( |
const Value & | source, |
|
|
const std::string & | filename ) |
|
virtual |
Save nom::Value values to XML nodes.
- Parameters
-
| source | nom::Value container to serialize from. |
| filename | Absolute file path to output resulting data to. |
- Note
- Implements ISerializer interface.
Implements nom::IValueSerializer.
◆ serialize()
| std::string nom::RapidXmlSerializer::serialize |
( |
const Value & | source | ) |
|
|
virtual |
Output a nom::Value object to a string.
- Parameters
-
- Returns
- std::string with XML-conforming output on success, or a null- terminated string on err.
- Note
- Implements ISerializer interface.
Implements nom::IValueSerializer.
◆ options_
| enum SerializerOptions nom::RapidXmlSerializer::options_ |
|
private |
The documentation for this class was generated from the following file: