bpp-seq
2.2.0
|
Partial implementation of the OAlignment interface. More...
#include <Bpp/Seq/Io/AbstractOAlignment.h>
Public Member Functions | |
AbstractOAlignment () | |
virtual | ~AbstractOAlignment () |
const std::string | getDataType () const |
OAlignment methods: | |
void | writeAlignment (std::ostream &output, const SiteContainer &sc) const =0 throw (Exception) |
Write a container to a stream. More... | |
void | writeAlignment (const std::string &path, const SiteContainer &sc, bool overwrite=true) const throw (Exception) |
Write a container to a file. More... | |
Partial implementation of the OAlignment interface.
Definition at line 57 of file AbstractOAlignment.h.
|
inline |
Definition at line 62 of file AbstractOAlignment.h.
|
inlinevirtual |
Definition at line 63 of file AbstractOAlignment.h.
|
inlineinherited |
Definition at line 65 of file IoSequence.h.
|
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. |
Implements bpp::OAlignment.
Implemented in bpp::Phylip, bpp::Clustal, and bpp::Stockholm.
Referenced by writeAlignment(), bpp::Stockholm::writeAlignment(), bpp::Clustal::writeAlignment(), and bpp::Phylip::writeAlignment().
|
inlinevirtual |
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::OAlignment.
Reimplemented in bpp::Phylip, bpp::Clustal, and bpp::Stockholm.
Definition at line 73 of file AbstractOAlignment.h.
References writeAlignment().