bpp-seq3
3.0.0
|
The OAlignment interface. More...
#include <Bpp/Seq/Io/OSequence.h>
Public Member Functions | |
OAlignment () | |
virtual | ~OAlignment () |
virtual void | writeAlignment (std::ostream &output, const SiteContainerInterface &sc) const =0 |
Write a container to a stream. More... | |
virtual void | writeAlignment (const std::string &path, const SiteContainerInterface &sc, bool overwrite) const =0 |
Write a container to a file. More... | |
const std::string | getDataType () const |
virtual const std::string | getFormatName () const=0 |
virtual const std::string | getFormatDescription () const=0 |
The OAlignment interface.
This interface defines the basic methods for writing alignments to a file.
Definition at line 56 of file OSequence.h.
|
inline |
Definition at line 60 of file OSequence.h.
|
inlinevirtual |
Definition at line 61 of file OSequence.h.
|
inlinevirtualinherited |
|
pure virtual |
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. |
Implemented in bpp::Stockholm, bpp::Clustal, bpp::AbstractOSequence2, bpp::AbstractOAlignment, and bpp::Phylip.
|
pure 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. |
Implemented in bpp::AbstractOAlignment, bpp::Stockholm, bpp::Phylip, bpp::Clustal, and bpp::AbstractOSequence2.