|
bpp-seq3
3.0.0
|
Partial implementation of the OSequence interface. More...
#include <Bpp/Seq/Io/AbstractOSequence.h>
Inheritance diagram for bpp::AbstractOSequence:
Collaboration diagram for bpp::AbstractOSequence:Public Member Functions | |
| AbstractOSequence () | |
| virtual | ~AbstractOSequence () |
| const std::string | getDataType () const |
| virtual const std::string | getFormatName () const=0 |
| virtual const std::string | getFormatDescription () const=0 |
OSequence methods: | |
| void | writeSequences (std::ostream &output, const SequenceContainerInterface &sc) const override=0 |
| Write a container to a stream. More... | |
| void | writeSequences (const std::string &path, const SequenceContainerInterface &sc, bool overwrite=true) const override |
| Write a container to a file. More... | |
Partial implementation of the OSequence interface.
Definition at line 23 of file AbstractOSequence.h.
|
inline |
Definition at line 27 of file AbstractOSequence.h.
|
inlinevirtual |
Definition at line 28 of file AbstractOSequence.h.
|
inlinevirtualinherited |
|
inlineoverridevirtual |
Write a container to a file.
| path | The path to the file to write. |
| sc | The container to write. |
| overwrite | If true the sequences are written at the beginning of the file instead of being appended. Any previous content will be lost. |
| Exception | If the file is not in the specified format. |
Implements bpp::OSequence.
Reimplemented in bpp::Mase, and bpp::Fasta.
Definition at line 38 of file AbstractOSequence.h.
References writeSequences().
|
overridepure virtual |
Write a container to a stream.
| output | The output stream where to write. |
| sc | The container to write. |
| Exception | If the file is not in the specified format. |
Implements bpp::OSequence.
Implemented in bpp::Pasta, bpp::Mase, and bpp::Fasta.
Referenced by bpp::AbstractOSequence2::writeAlignment(), writeSequences(), bpp::Fasta::writeSequences(), and bpp::Mase::writeSequences().