bpp-core3
3.0.0
|
Utilitary class for creating discrete distribution readers and writers. More...
#include <Bpp/Io/IoDiscreteDistributionFactory.h>
Public Member Functions | |
IoDiscreteDistributionFactory () | |
Creates a new factory object. More... | |
virtual | ~IoDiscreteDistributionFactory () |
virtual IDiscreteDistribution * | createReader (const std::string &format) |
Get a new dynamically created IDiscreteDistribution object. More... | |
virtual ODiscreteDistribution * | createWriter (const std::string &format) |
Get a new dynamically created ODiscreteDistribution object. More... | |
Static Public Attributes | |
static const std::string | BPPO_FORMAT = "Bpp0" |
Utilitary class for creating discrete distribution readers and writers.
Definition at line 22 of file IoDiscreteDistributionFactory.h.
|
inline |
Creates a new factory object.
Example:
Definition at line 38 of file IoDiscreteDistributionFactory.h.
|
inlinevirtual |
Definition at line 39 of file IoDiscreteDistributionFactory.h.
References createReader(), and createWriter().
|
virtual |
Get a new dynamically created IDiscreteDistribution object.
format | The input file format. |
Exception | If the format name do not match any available format. |
Definition at line 11 of file IoDiscreteDistributionFactory.cpp.
References BPPO_FORMAT.
Referenced by ~IoDiscreteDistributionFactory().
|
virtual |
Get a new dynamically created ODiscreteDistribution object.
format | The output file format. |
Exception | If the format name do not match any available format. |
Definition at line 19 of file IoDiscreteDistributionFactory.cpp.
References BPPO_FORMAT.
Referenced by ~IoDiscreteDistributionFactory().
|
static |
Definition at line 25 of file IoDiscreteDistributionFactory.h.
Referenced by createReader(), and createWriter().