bpp-core3  3.0.0
bpp::BppOParametrizableFormat Class Reference

Parametrizable output in BppO format. More...

#include <Bpp/Io/BppOParametrizableFormat.h>

+ Inheritance diagram for bpp::BppOParametrizableFormat:
+ Collaboration diagram for bpp::BppOParametrizableFormat:

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...
 

Detailed Description

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 57 of file BppOParametrizableFormat.h.

Constructor & Destructor Documentation

◆ BppOParametrizableFormat()

bpp::BppOParametrizableFormat::BppOParametrizableFormat ( )
inline

Definition at line 61 of file BppOParametrizableFormat.h.

◆ ~BppOParametrizableFormat()

virtual bpp::BppOParametrizableFormat::~BppOParametrizableFormat ( )
inlinevirtual

Definition at line 62 of file BppOParametrizableFormat.h.

Member Function Documentation

◆ getDataType()

virtual const std::string bpp::IOParametrizable::getDataType ( ) const
inlinevirtualinherited

Get the type of data this format deals with.

Returns
The type of data.

Implements bpp::IOFormat.

Definition at line 63 of file IoParametrizable.h.

◆ getFormatDescription()

const std::string bpp::BppOParametrizableFormat::getFormatDescription ( ) const
inlinevirtual

Get a description of the file format.

Returns
A description of the format implemented.

Implements bpp::IOFormat.

Definition at line 67 of file BppOParametrizableFormat.h.

◆ getFormatName()

const std::string bpp::BppOParametrizableFormat::getFormatName ( ) const
inlinevirtual

Get the name of the file format.

Returns
The name of the format implemented.

Implements bpp::IOFormat.

Definition at line 65 of file BppOParametrizableFormat.h.

◆ write() [1/2]

void BppOParametrizableFormat::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
virtual

Write a ParameterAliasable to a stream.

Parameters
parametrizableA pointer to a Parametrizable object;
outThe output stream;
globalAliasesparameters linked to global alias;
namesthe names of the parameters to be written;
writtenNamesis the vector of the written parameters so far [in, out];
printLocalAliasesboolean if local aliases should be written;
printCommaboolean if a comma should be written at the beginning of the description.

Implements bpp::OParametrizable.

Definition at line 78 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().

◆ write() [2/2]

void BppOParametrizableFormat::write ( const Parametrizable parametrizable,
OutputStream out,
std::vector< std::string > &  writtenNames,
bool  printComma = false 
) const
virtual

Write a Parametrizable to a stream.

Parameters
parametrizableA pointer to a Parametrizable object;
outThe output stream;
writtenNamesis the vector of the written parameters so far [in, out];
printCommaboolean if a comma should be written at the beginning of the description.

Implements bpp::OParametrizable.

Definition at line 53 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::writeDiscreteDistribution().


The documentation for this class was generated from the following files: