bpp-core3  3.0.0
bpp::OParametrizable Class Referenceabstract

General interface writers. More...

#include <Bpp/Io/IoParametrizable.h>

+ Inheritance diagram for bpp::OParametrizable:
+ Collaboration diagram for bpp::OParametrizable:

Public Member Functions

 OParametrizable ()
 
virtual ~OParametrizable ()
 
virtual void write (const Parametrizable &parametrizable, OutputStream &out, std::vector< std::string > &writtenNames, bool printComma=false) const =0
 Write a Parametrizable to a stream. More...
 
virtual 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 =0
 Write a ParameterAliasable to a stream. More...
 
virtual const std::string getDataType () const
 Get the type of data this format deals with. More...
 
virtual const std::string getFormatName () const =0
 Get the name of the file format. More...
 
virtual const std::string getFormatDescription () const =0
 Get a description of the file format. More...
 

Detailed Description

General interface writers.

Definition at line 33 of file IoParametrizable.h.

Constructor & Destructor Documentation

◆ OParametrizable()

bpp::OParametrizable::OParametrizable ( )
inline

Definition at line 37 of file IoParametrizable.h.

◆ ~OParametrizable()

virtual bpp::OParametrizable::~OParametrizable ( )
inlinevirtual

Definition at line 38 of file IoParametrizable.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 27 of file IoParametrizable.h.

◆ getFormatDescription()

virtual const std::string bpp::IOFormat::getFormatDescription ( ) const
pure virtualinherited

Get a description of the file format.

Returns
A description of the format implemented.

Implemented in bpp::BppODiscreteDistributionFormat, and bpp::BppOParametrizableFormat.

Referenced by bpp::IOFormat::~IOFormat().

◆ getFormatName()

virtual const std::string bpp::IOFormat::getFormatName ( ) const
pure virtualinherited

Get the name of the file format.

Returns
The name of the format implemented.

Implemented in bpp::BppODiscreteDistributionFormat, and bpp::BppOParametrizableFormat.

Referenced by bpp::IOFormat::~IOFormat().

◆ write() [1/2]

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

Write a Parametrizable to a stream.

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

Implemented in bpp::BppOParametrizableFormat.

◆ write() [2/2]

virtual void bpp::OParametrizable::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
pure virtual

Write a ParameterAliasable to a stream.

Parameters
parametrizableA ParameterAliasable 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.

Implemented in bpp::BppOParametrizableFormat.


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