A library for working with phylogenetic and population genetic data.
v0.32.0
XmlWriter Class Reference

#include <genesis/utils/formats/xml/writer.hpp>

Detailed Description

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...
 

Member Function Documentation

◆ print_attributes_list_()

std::string print_attributes_list_ ( StringMapType  attr) const
protected

Print a list of XML attributes.

Definition at line 129 of file utils/formats/xml/writer.cpp.

◆ print_comment_()

void print_comment_ ( XmlComment const *  value,
std::ostream &  os 
) const
protected

Print an XML comment.

Definition at line 68 of file utils/formats/xml/writer.cpp.

◆ print_element_()

void print_element_ ( XmlElement const *  value,
const int  indent_level,
std::ostream &  os 
) const
protected

Print an XML element.

Definition at line 84 of file utils/formats/xml/writer.cpp.

◆ print_markup_()

void print_markup_ ( XmlMarkup const *  value,
std::ostream &  os 
) const
protected

Print an XML markup (simple text).

Definition at line 76 of file utils/formats/xml/writer.cpp.

◆ write()

void write ( XmlDocument const &  document,
std::shared_ptr< utils::BaseOutputTarget target 
) const

Definition at line 50 of file utils/formats/xml/writer.cpp.

Member Data Documentation

◆ indent

int indent = 4

Indent used for printing the XML elements.

Definition at line 91 of file utils/formats/xml/writer.hpp.


The documentation for this class was generated from the following files: