bpp-core
2.2.0
|
Parametrizable output in BppO format. More...
#include <Bpp/Io/BppOParametrizableFormat.h>
Public Member Functions | |
BppOParametrizableFormat () | |
virtual | ~BppOParametrizableFormat () |
const std::string | getFormatName () const |
Get the name of the file format. More... | |
const std::string | getFormatDescription () const |
Get a description of the file format. More... | |
void | write (const Parametrizable *parametrizable, OutputStream &out, std::vector< std::string > &writtenNames, bool printComma=false) const |
Write a Parametrizable to a stream. More... | |
void | write (const ParameterAliasable *parametrizable, OutputStream &out, std::map< std::string, std::string > &globalAliases, const std::vector< std::string > &names, std::vector< std::string > &writtenNames, bool printLocalAliases=true, bool printComma=false) const |
Write a ParameterAliasable to a stream. More... | |
virtual const std::string | getDataType () const |
Get the type of data this format deals with. More... | |
Parametrizable output in BppO format.
Writes a new parametrizable object according to BppO description syntax (see the Bio++ Progam Suite manual for a detailed description of this syntax).
Definition at line 56 of file BppOParametrizableFormat.h.
|
inline |
Definition at line 60 of file BppOParametrizableFormat.h.
|
inlinevirtual |
Definition at line 61 of file BppOParametrizableFormat.h.
|
inlinevirtualinherited |
Get the type of data this format deals with.
Implements bpp::IOFormat.
Definition at line 62 of file IoParametrizable.h.
|
inlinevirtual |
Get a description of the file format.
Implements bpp::IOFormat.
Definition at line 66 of file BppOParametrizableFormat.h.
|
inlinevirtual |
Get the name of the file format.
Implements bpp::IOFormat.
Definition at line 64 of file BppOParametrizableFormat.h.
|
virtual |
Write a Parametrizable to a stream.
parametrizable | A pointer to a Parametrizable object; |
out | The output stream; |
writtenNames | is the vector of the written parameters so far [in, out]; |
printComma | boolean if a comma should be written at the beginning of the description. |
Implements bpp::OParametrizable.
Definition at line 51 of file BppOParametrizableFormat.cpp.
References bpp::Parametrizable::getParameterNameWithoutNamespace(), bpp::Parametrizable::getParameters(), bpp::OutputStream::getPrecision(), bpp::OutputStream::setPrecision(), and bpp::ParameterList::size().
Referenced by bpp::BppODiscreteDistributionFormat::write().
|
virtual |
Write a ParameterAliasable to a stream.
parametrizable | A pointer to a Parametrizable object; |
out | The output stream; |
globalAliases | parameters linked to global alias; |
names | the names of the parameters to be written; |
writtenNames | is the vector of the written parameters so far [in, out]; |
printLocalAliases | boolean if local aliases should be written; |
printComma | boolean if a comma should be written at the beginning of the description. |
Implements bpp::OParametrizable.
Definition at line 77 of file BppOParametrizableFormat.cpp.
References bpp::ParameterAliasable::getAlias(), bpp::ParameterAliasable::getIndependentParameters(), bpp::Parametrizable::getParameterNameWithoutNamespace(), bpp::OutputStream::getPrecision(), bpp::OutputStream::setPrecision(), bpp::ParameterList::size(), and bpp::ParameterList::subList().