bpp-seq3
3.0.0
|
The ISequence interface. More...
#include <Bpp/Seq/Io/ISequence.h>
Public Member Functions | |
ISequence () | |
virtual | ~ISequence () |
virtual void | readSequences (std::istream &input, SequenceContainerInterface &container) const =0 |
Create a new container from a stream. More... | |
virtual void | readSequences (const std::string &path, SequenceContainerInterface &container) const =0 |
Create a new container from a file. More... | |
virtual std::unique_ptr< SequenceContainerInterface > | readSequences (std::istream &input, std::shared_ptr< const Alphabet > alpha) const =0 |
Create a new container from a stream. More... | |
virtual std::unique_ptr< SequenceContainerInterface > | readSequences (const std::string &path, std::shared_ptr< const Alphabet > alpha) const =0 |
Create a new container from a file. More... | |
const std::string | getDataType () const |
virtual const std::string | getFormatName () const=0 |
virtual const std::string | getFormatDescription () const=0 |
The ISequence interface.
This interface defines the basic methods for reading sequences from a file.
Definition at line 27 of file ISequence.h.
|
inline |
Definition at line 31 of file ISequence.h.
|
inlinevirtual |
Definition at line 32 of file ISequence.h.
|
inlinevirtualinherited |
|
pure virtual |
Create a new container from a file.
path | The path to the file to read. |
container | The container where to add data. |
Exception | If the file is not in the specified format. |
Implemented in bpp::AbstractISequence, and bpp::AbstractIAlignment2.
|
pure virtual |
Create a new container from a file.
path | The path to the file to read. |
alpha | The alphabet to be associated to the container. |
Exception | If the file is not in the specified format. |
Implemented in bpp::Phylip, bpp::DCSE, bpp::Clustal, bpp::AbstractISequence, and bpp::AbstractIAlignment2.
|
pure virtual |
Create a new container from a stream.
input | The input stream to read. |
container | The container where to add data. |
Exception | If the file is not in the specified format. |
Implemented in bpp::AbstractISequence, and bpp::AbstractIAlignment2.
|
pure virtual |
Create a new container from a stream.
input | The input stream to read. |
alpha | The alphabet to be associated to the container. |
Exception | If the file is not in the specified format. |
Implemented in bpp::Phylip, bpp::DCSE, bpp::Clustal, bpp::AbstractISequence, and bpp::AbstractIAlignment2.