bpp-phyl  2.1.0
bpp::IMultiTree Class Reference

General interface for multiple trees readers. More...

#include <Bpp/Phyl/Io/IoTree.h>

+ Inheritance diagram for bpp::IMultiTree:
+ Collaboration diagram for bpp::IMultiTree:

List of all members.

Public Member Functions

 IMultiTree ()
virtual ~IMultiTree ()
virtual void read (const std::string &path, std::vector< Tree * > &trees) const =0 throw (Exception)
 Read trees from a file.
virtual void read (std::istream &in, std::vector< Tree * > &trees) const =0 throw (Exception)
 Read trees from a stream.
virtual const std::string getDataType () const
virtual const std::string getFormatName () const =0
virtual const std::string getFormatDescription () const =0

Detailed Description

General interface for multiple trees readers.

Definition at line 193 of file IoTree.h.


Constructor & Destructor Documentation

Definition at line 197 of file IoTree.h.

virtual bpp::IMultiTree::~IMultiTree ( ) [inline, virtual]

Definition at line 198 of file IoTree.h.


Member Function Documentation

virtual const std::string bpp::IOTree::getDataType ( ) const [inline, virtual, inherited]

Implements bpp::IOFormat.

Definition at line 68 of file IoTree.h.

virtual void bpp::IMultiTree::read ( const std::string &  path,
std::vector< Tree * > &  trees 
) const throw (Exception) [pure virtual]

Read trees from a file.

Parameters:
pathThe file path.
treesThe output trees container.
Exceptions:
ExceptionIf an error occured.

Implemented in bpp::AbstractIMultiTree, bpp::Nhx, bpp::Newick, and bpp::NexusIOTree.

Referenced by bpp::PhylogeneticsApplicationTools::getTrees().

virtual void bpp::IMultiTree::read ( std::istream &  in,
std::vector< Tree * > &  trees 
) const throw (Exception) [pure virtual]

Read trees from a stream.

Parameters:
inThe input stream.
treesThe output trees container.
Exceptions:
ExceptionIf an error occured.

Implemented in bpp::AbstractIMultiTree, bpp::Nhx, bpp::Newick, and bpp::NexusIOTree.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends