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
16namespace bpp
17{
26{
27public:
28 static const std::string BPPO_FORMAT;
29
30public:
43
51 virtual std::unique_ptr<ISubstitutionModel> createReader(const std::string& format);
52
60 virtual std::unique_ptr<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 std::unique_ptr< OSubstitutionModel > createWriter(const std::string &format)
Get a new dynamically created OSubstitutionModel object.
IOSubstitutionModelFactory()
Creates a new factory object.
virtual std::unique_ptr< ISubstitutionModel > createReader(const std::string &format)
Get a new dynamically created ISubstitutionModel object.
Defines the basic types of data flow nodes.