bpp-seq
2.2.0
|
The ISequence interface. More...
#include <Bpp/Seq/Io/ISequence.h>
Public Member Functions | |
ISequence () | |
virtual | ~ISequence () |
virtual SequenceContainer * | readSequences (std::istream &input, const Alphabet *alpha) const =0 throw (Exception) |
Create a new container from a stream. More... | |
virtual SequenceContainer * | readSequences (const std::string &path, const Alphabet *alpha) const =0 throw (Exception) |
Create a new container from a file. More... | |
const std::string | getDataType () const |
The ISequence interface.
This interface defines the basic methods for reading sequences from a file. NB: This interface is effective only if the VIRTUAL_COV option is enabled (default behavior).
Definition at line 64 of file ISequence.h.
|
inline |
Definition at line 68 of file ISequence.h.
|
inlinevirtual |
Definition at line 69 of file ISequence.h.
|
inlineinherited |
Definition at line 65 of file IoSequence.h.
|
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::NexusIOSequence, bpp::AbstractISequence, bpp::Clustal, and bpp::DCSE.
|
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::AbstractISequence, bpp::NexusIOSequence, bpp::Clustal, and bpp::DCSE.