bpp-core3
3.0.0
|
Parametrizable output in BppO format. More...
#include <Bpp/Io/BppOParametrizableFormat.h>
Public Member Functions | |
BppOParametrizableFormat () | |
virtual | ~BppOParametrizableFormat () |
const std::string | getFormatName () const override |
Get the name of the file format. More... | |
const std::string | getFormatDescription () const override |
Get a description of the file format. More... | |
void | write (const Parametrizable ¶metrizable, OutputStream &out, std::vector< std::string > &writtenNames, bool printComma=false) const override |
Write a Parametrizable to a stream. More... | |
void | write (const ParameterAliasable ¶metrizable, 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 override |
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 21 of file BppOParametrizableFormat.h.
|
inline |
Definition at line 25 of file BppOParametrizableFormat.h.
|
inlinevirtual |
Definition at line 26 of file BppOParametrizableFormat.h.
|
inlinevirtualinherited |
Get the type of data this format deals with.
Implements bpp::IOFormat.
Definition at line 27 of file IoParametrizable.h.
|
inlineoverridevirtual |
Get a description of the file format.
Implements bpp::IOFormat.
Definition at line 31 of file BppOParametrizableFormat.h.
References write().
|
inlineoverridevirtual |
Get the name of the file format.
Implements bpp::IOFormat.
Definition at line 29 of file BppOParametrizableFormat.h.
|
overridevirtual |
Write a Parametrizable to a stream.
parametrizable | 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 16 of file BppOParametrizableFormat.cpp.
References bpp::Parametrizable::getParameterNameWithoutNamespace(), bpp::Parametrizable::getParameters(), bpp::OutputStream::getPrecision(), bpp::OutputStream::setPrecision(), and bpp::ParameterList::size().
Referenced by getFormatDescription(), and bpp::BppODiscreteDistributionFormat::writeDiscreteDistribution().
|
overridevirtual |
Write a ParameterAliasable to a stream.
parametrizable | A ParameterAliasable 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 41 of file BppOParametrizableFormat.cpp.
References bpp::ParameterList::createSubList(), bpp::ParameterAliasable::getAlias(), bpp::ParameterAliasable::getIndependentParameters(), bpp::Parametrizable::getParameterNameWithoutNamespace(), bpp::OutputStream::getPrecision(), bpp::OutputStream::setPrecision(), and bpp::ParameterList::size().