Utilitary class for creating distance matrix readers and writers.
More...
#include <Bpp/Seq/Io/IoDistanceMatrixFactory.h>
Utilitary class for creating distance matrix readers and writers.
- See also
- IOSequenceFactory
-
IOTreeFactory
Definition at line 23 of file IoDistanceMatrixFactory.h.
◆ IODistanceMatrixFactory()
bpp::IODistanceMatrixFactory::IODistanceMatrixFactory |
( |
| ) |
|
|
inline |
Creates a new factory object.
Example:
auto matrix = matReader->read("file.ph");
IODistanceMatrixFactory()
Creates a new factory object.
Definition at line 38 of file IoDistanceMatrixFactory.h.
◆ ~IODistanceMatrixFactory()
virtual bpp::IODistanceMatrixFactory::~IODistanceMatrixFactory |
( |
| ) |
|
|
inlinevirtual |
◆ createReader()
unique_ptr< IDistanceMatrix > IODistanceMatrixFactory::createReader |
( |
const std::string & |
format, |
|
|
bool |
extended = false |
|
) |
| |
|
virtual |
Get a new dynamically created IDistanceMatrix object.
- Parameters
-
format | The input file format, and whether names should be only less than 10 characters, or not (false=10 characters max). |
extended | format (default false). |
- Returns
- A pointer toward a new IDistanceMatrix object.
- Exceptions
-
Exception | If the format name do not match any available format. |
Definition at line 13 of file IoDistanceMatrixFactory.cpp.
◆ createWriter()
unique_ptr< ODistanceMatrix > IODistanceMatrixFactory::createWriter |
( |
const std::string & |
format, |
|
|
bool |
extended = false |
|
) |
| |
|
virtual |
Get a new dynamically created ODistanceMatrix object.
- Parameters
-
format | The output file format, and whether names should be only less than 10 characters, or not (false=10 characters max). |
extended | format (default false). |
- Returns
- A pointer toward a new ODistanceMatrix object.
- Exceptions
-
Exception | If the format name do not match any available format. |
Definition at line 21 of file IoDistanceMatrixFactory.cpp.
◆ PHYLIP_FORMAT
const std::string IODistanceMatrixFactory::PHYLIP_FORMAT = "Phylip" |
|
static |
The documentation for this class was generated from the following files: