bpp-seq
2.2.0
|
Partial implementation of the ISequence interface. More...
#include <Bpp/Seq/Io/AbstractISequence.h>
Public Member Functions | |
AbstractISequence () | |
virtual | ~AbstractISequence () |
const std::string | getDataType () const |
ISequence methods: | |
virtual void | readSequences (std::istream &input, SequenceContainer &sc) const throw (Exception) |
Add sequences to a container from a stream. More... | |
virtual void | readSequences (const std::string &path, SequenceContainer &sc) const throw (Exception) |
Add sequences to a container from a file. More... | |
virtual VectorSequenceContainer * | readSequences (std::istream &input, const Alphabet *alpha) const throw (Exception) |
Create a new container from a stream. More... | |
virtual VectorSequenceContainer * | readSequences (const std::string &path, const Alphabet *alpha) const throw (Exception) |
Create a new container from a file. More... | |
Protected Member Functions | |
virtual void | appendSequencesFromStream (std::istream &input, SequenceContainer &sc) const =0 throw (Exception) |
Append sequences to a container from a stream. More... | |
virtual void | appendSequencesFromFile (const std::string &path, SequenceContainer &sc) const throw (Exception) |
Append sequences to a container from a file. More... | |
virtual VectorSequenceContainer * | readSequencesFromStream (std::istream &input, const Alphabet *alpha) const throw (Exception) |
Read sequences from a stream. More... | |
virtual VectorSequenceContainer * | readSequencesFromFile (const std::string &path, const Alphabet *alpha) const throw (Exception) |
Append sequences to a container from a file. More... | |
Partial implementation of the ISequence interface.
Definition at line 58 of file AbstractISequence.h.
|
inline |
Definition at line 63 of file AbstractISequence.h.
|
inlinevirtual |
Definition at line 64 of file AbstractISequence.h.
|
inlineprotectedvirtual |
Append sequences to a container from a file.
path | The path to the file to read. |
sc | The sequence container to update. |
Exception | If the file is not in the specified format. |
Definition at line 142 of file AbstractISequence.h.
References appendSequencesFromStream().
Referenced by readSequences(), and readSequencesFromFile().
|
protectedpure virtual |
Append sequences to a container from a stream.
This is the unique method to implement!
input | The input stream to read. |
sc | The sequence container to update. |
Exception | If the file is not in the specified format. |
Implemented in bpp::Mase, bpp::Fasta, and bpp::GenBank.
Referenced by appendSequencesFromFile(), readSequences(), and readSequencesFromStream().
|
inlineinherited |
Definition at line 65 of file IoSequence.h.
|
inlinevirtual |
Add sequences to a container from a stream.
input | The input stream to read. |
sc | The sequence container to update. |
Exception | If the file is not in the specified format. |
Definition at line 82 of file AbstractISequence.h.
References appendSequencesFromStream().
Referenced by bpp::Mase::readMeta().
|
inlinevirtual |
Add sequences to a container from a file.
path | The path to the file to read. |
sc | The sequence container to update. |
Exception | If the file is not in the specified format. |
Definition at line 94 of file AbstractISequence.h.
References appendSequencesFromFile().
|
inlinevirtual |
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. |
Implements bpp::ISequence.
Definition at line 105 of file AbstractISequence.h.
References readSequencesFromStream().
|
inlinevirtual |
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. |
Implements bpp::ISequence.
Definition at line 116 of file AbstractISequence.h.
References readSequencesFromFile().
|
inlineprotectedvirtual |
Append sequences to a container from a file.
path | The path to the file to read. |
alpha | The alphabet to use. |
Exception | If the file is not in the specified format. |
Definition at line 171 of file AbstractISequence.h.
References appendSequencesFromFile().
Referenced by readSequences().
|
inlineprotectedvirtual |
Read sequences from a stream.
input | The input stream to read. |
alpha | The alphabet to use. |
Exception | If the file is not in the specified format. |
Definition at line 157 of file AbstractISequence.h.
References appendSequencesFromStream().
Referenced by readSequences().