#include <genesis/utils/formats/xml/writer.hpp>
Write Xml data.
Definition at line 58 of file utils/formats/xml/writer.hpp.
Public Member Functions | |
void | write (XmlDocument const &document, std::shared_ptr< utils::BaseOutputTarget > target) const |
Public Attributes | |
int | indent = 4 |
Indent used for printing the XML elements. More... | |
Protected Member Functions | |
std::string | print_attributes_list_ (StringMapType attr) const |
Print a list of XML attributes. More... | |
void | print_comment_ (XmlComment const *value, std::ostream &os) const |
Print an XML comment. More... | |
void | print_element_ (XmlElement const *value, const int indent_level, std::ostream &os) const |
Print an XML element. More... | |
void | print_markup_ (XmlMarkup const *value, std::ostream &os) const |
Print an XML markup (simple text). More... | |
|
protected |
Print a list of XML attributes.
Definition at line 129 of file utils/formats/xml/writer.cpp.
|
protected |
Print an XML comment.
Definition at line 68 of file utils/formats/xml/writer.cpp.
|
protected |
Print an XML element.
Definition at line 84 of file utils/formats/xml/writer.cpp.
|
protected |
Print an XML markup (simple text).
Definition at line 76 of file utils/formats/xml/writer.cpp.
void write | ( | XmlDocument const & | document, |
std::shared_ptr< utils::BaseOutputTarget > | target | ||
) | const |
Definition at line 50 of file utils/formats/xml/writer.cpp.
int indent = 4 |
Indent used for printing the XML elements.
Definition at line 91 of file utils/formats/xml/writer.hpp.