40 #ifndef _NEXUSIOTREE_H_ 41 #define _NEXUSIOTREE_H_ 44 #include "../TreeTemplate.h" 92 #if defined(NO_VIRTUAL_COV) 93 Tree*
read(
const std::string& path)
const throw (Exception)
104 #if defined(NO_VIRTUAL_COV) 109 read(std::istream& in)
const throw (Exception);
117 void write(
const Tree& tree,
const std::string& path,
bool overwrite =
true)
const throw (Exception)
121 void write(
const Tree& tree, std::ostream& out)
const throw (Exception)
132 void read(
const std::string& path, std::vector<Tree*>& trees)
const throw (Exception)
136 void read(std::istream& in, std::vector<Tree*>& trees)
const throw (Exception);
144 void write(
const std::vector<Tree*>& trees,
const std::string& path,
bool overwrite =
true)
const throw (Exception)
148 void write(
const std::vector<Tree*>& trees, std::ostream& out)
const throw (Exception)
155 void write_(
const Tree& tree, std::ostream& out)
const throw (Exception);
160 void write_(
const std::vector<Tree*>& trees, std::ostream& out)
const throw (Exception);
169 #endif //_NEXUSIOTREE_H_ void write(const std::vector< Tree *> &trees, std::ostream &out) const =0
Write trees to a stream.
a simple parser for reading trees from a Nexus file.
void write(const std::vector< Tree *> &trees, std::ostream &out) const
Write trees to a stream.
void write(const Tree &tree, std::ostream &out) const =0
Write a tree to a stream.
Partial implementation of the ITree interface.
const std::string getFormatDescription() const
TreeTemplate< Node > * read(const std::string &path) const
Read a tree from a file.
void write(const Tree &tree, std::ostream &out) const
Write a tree to a stream.
The phylogenetic tree class.
Interface for phylogenetic tree objects.
void write(const std::vector< Tree *> &trees, const std::string &path, bool overwrite=true) const
Write trees to a file.
void read(const std::string &path, std::vector< Tree *> &trees) const
Read trees from a file.
const std::string getFormatName() const
virtual Tree * read(std::istream &in) const =0
Read a tree from a stream.
virtual void read(std::istream &in, std::vector< Tree *> &trees) const =0
Read trees from a stream.
Partial implementation of the OTree interface.
NexusIOTree()
Build a new Nexus tree parser.
Partial implementation of the OTree interface.
Partial implementation of the IMultiTree interface.
void write_(const Tree &tree, std::ostream &out) const
void write(const Tree &tree, const std::string &path, bool overwrite=true) const
Write a tree to a file.