29#ifndef NOMLIB_SERIALIZERS_RAPIDXML_SERIALIZER_HPP
30#define NOMLIB_SERIALIZERS_RAPIDXML_SERIALIZER_HPP
38#include "nomlib/config.hpp"
39#include "nomlib/serializers/serializers_config.hpp"
40#include "nomlib/serializers/IValueSerializer.hpp"
41#include "nomlib/ptree.hpp"
105 bool save (
const Value& source,
const std::string& filename );
108 enum SerializerOptions options_;
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.
bool save(const Value &source, const std::string &filename)
Save nom::Value values to XML nodes.
void append_decl(rapidxml::xml_document< char > &dest) const
Add the top-level XML node declaring the version and encoding used (think: DOCTYPE).
RapidXmlSerializer(void)
Default constructor; initialize the writer with human friendly output.
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.
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.
~RapidXmlSerializer(void)
Destructor.
Generic interface for opaque data containers.