|
bpp-phyl3 3.0.0
|
Utilitary class for creating tree readers and writers. More...
#include <Bpp/Phyl/Io/IoTreeFactory.h>
Collaboration diagram for bpp::IOTreeFactory:Public Member Functions | |
| IOTreeFactory () | |
| Creates a new factory object. More... | |
| virtual | ~IOTreeFactory () |
| virtual std::unique_ptr< ITree > | createReader (const std::string &format) |
| Get a new dynamically created ITree object. More... | |
| virtual std::unique_ptr< OTree > | createWriter (const std::string &format) |
| Get a new dynamically created OTree object. More... | |
Static Public Attributes | |
| static const std::string | NEWICK_FORMAT = "Newick" |
| static const std::string | NEXUS_FORMAT = "Nexus" |
| static const std::string | NHX_FORMAT = "Nhx" |
Utilitary class for creating tree readers and writers.
Definition at line 19 of file IoTreeFactory.h.
|
inline |
Creates a new factory object.
Example:
Definition at line 37 of file IoTreeFactory.h.
|
inlinevirtual |
Definition at line 38 of file IoTreeFactory.h.
|
virtual |
Get a new dynamically created ITree object.
| format | The input file format. |
| Exception | If the format name do not match any available format. |
Definition at line 16 of file IoTreeFactory.cpp.
References NEWICK_FORMAT, NEXUS_FORMAT, and NHX_FORMAT.
|
virtual |
Get a new dynamically created OTree object.
| format | The output file format. |
| Exception | If the format name do not match any available format. |
Definition at line 28 of file IoTreeFactory.cpp.
References NEWICK_FORMAT, NEXUS_FORMAT, and NHX_FORMAT.
|
static |
Definition at line 22 of file IoTreeFactory.h.
Referenced by createReader(), and createWriter().
|
static |
Definition at line 23 of file IoTreeFactory.h.
Referenced by createReader(), and createWriter().
|
static |
Definition at line 24 of file IoTreeFactory.h.
Referenced by createReader(), and createWriter().