bpp-core3  3.0.0
IoDiscreteDistributionFactory.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef BPP_IO_IODISCRETEDISTRIBUTIONFACTORY_H
6 #define BPP_IO_IODISCRETEDISTRIBUTIONFACTORY_H
7 
8 
9 #include "../Exceptions.h"
10 #include "../Numeric/Prob/DiscreteDistribution.h"
11 #include "IoDiscreteDistribution.h"
12 
13 // From the STL:
14 #include <string>
15 
16 namespace bpp
17 {
23 {
24 public:
25  static const std::string BPPO_FORMAT;
26 
27 public:
40 
48  virtual IDiscreteDistribution* createReader(const std::string& format);
49 
57  virtual ODiscreteDistribution* createWriter(const std::string& format);
58 };
59 } // end of namespace bpp.
60 #endif // BPP_IO_IODISCRETEDISTRIBUTIONFACTORY_H
General interface for distance matrix readers.
General interface writers.
virtual ODiscreteDistribution * createWriter(const std::string &format)
Get a new dynamically created ODiscreteDistribution object.
virtual IDiscreteDistribution * createReader(const std::string &format)
Get a new dynamically created IDiscreteDistribution object.
Utilitary class for creating discrete distribution readers and writers.
IoDiscreteDistributionFactory()
Creates a new factory object.