|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_TREE_FORMATS_PHYLOXML_WRITER_H_
2 #define GENESIS_TREE_FORMATS_PHYLOXML_WRITER_H_
175 void write(
Tree const& tree, std::shared_ptr<utils::BaseOutputTarget> target )
const;
213 #endif // include guard
std::function< void(TreeNode const &node, utils::XmlElement &element) > node_to_element_function
Function type that translates from a TreeNode to an XmlElement.
std::vector< edge_to_element_function > edge_to_element_plugins
Collect all functions to be called for each TreeEdge in order to translate it to a Phyloxml represent...
std::vector< node_to_element_function > node_to_element_plugins
Collect all functions to be called for each TreeNode in order to translate it to a Phyloxml represent...
void write(Tree const &tree, std::shared_ptr< utils::BaseOutputTarget > target) const
Write a Tree to an output target, using the Phyloxml format.
void to_document(Tree const &tree, utils::XmlDocument &xml) const
Store the information of the tree into an Phyloxml-formatted XmlDocument.
Class for representing phylogenetic trees.
virtual ~PhyloxmlWriter()=default
Write a Tree to Phyloxml format.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::function< void(Tree const &tree, utils::XmlDocument &xml) > prepare_writing_function
Function type that allows to do some preparatory work with the Tree and XmlDocument before the actual...
std::vector< prepare_writing_function > prepare_writing_plugins
Collect all functions to be called before starting the actual tree writing.
std::function< void(Tree const &tree, utils::XmlDocument &xml) > finish_writing_function
Function type that allows to do some finalizing work with the Tree and XmlDocument after the actual t...
std::vector< finish_writing_function > finish_writing_plugins
Collect all functions to be called after finishing the actual tree writing.
PhyloxmlWriter & operator=(PhyloxmlWriter const &)=default
std::function< void(TreeEdge const &edge, utils::XmlElement &element) > edge_to_element_function
Function type that translates from a TreeEdge to an XmlElement.