1 #ifndef GENESIS_UTILS_FORMATS_XML_WRITER_H_ 2 #define GENESIS_UTILS_FORMATS_XML_WRITER_H_ 37 #include <unordered_map> 60 typedef std::unordered_map<std::string, std::string> StringMapType;
68 void write(
XmlDocument const& document, std::shared_ptr<utils::BaseOutputTarget> target )
const;
97 #endif // include guard
void print_comment_(XmlComment const *value, std::ostream &os) const
Print an XML comment.
std::string print_attributes_list_(StringMapType attr) const
Print a list of XML attributes.
void print_element_(XmlElement const *value, const int indent_level, std::ostream &os) const
Print an XML element.
int indent
Indent used for printing the XML elements.
Container namespace for all symbols of genesis in order to keep them separate when used as a library...
void print_markup_(XmlMarkup const *value, std::ostream &os) const
Print an XML markup (simple text).
void write(XmlDocument const &document, std::shared_ptr< utils::BaseOutputTarget > target) const