bpp-phyl3  3.0.0
IoSubstitutionModelFactory.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_PHYL_IO_IOSUBSTITUTIONMODELFACTORY_H
6 #define BPP_PHYL_IO_IOSUBSTITUTIONMODELFACTORY_H
7 
8 #include <Bpp/Exceptions.h>
9 
10 #include "../Model/SubstitutionModel.h"
11 #include "IoSubstitutionModel.h"
12 
13 // From the STL:
14 #include <string>
15 
16 namespace bpp
17 {
26 {
27 public:
28  static const std::string BPPO_FORMAT;
29 
30 public:
43 
51  virtual ISubstitutionModel* createReader(const std::string& format);
52 
60  virtual OSubstitutionModel* createWriter(const std::string& format);
61 };
62 } // end of namespace bpp.
63 #endif // BPP_PHYL_IO_IOSUBSTITUTIONMODELFACTORY_H
Utilitary class for creating substitution model readers and writers.
virtual OSubstitutionModel * createWriter(const std::string &format)
Get a new dynamically created OSubstitutionModel object.
virtual ISubstitutionModel * createReader(const std::string &format)
Get a new dynamically created ISubstitutionModel object.
IOSubstitutionModelFactory()
Creates a new factory object.
General interface for model readers.
General interface for distance matrix writers.
Defines the basic types of data flow nodes.