bpp-phyl3 3.0.0
IoFrequencySetFactory.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_IOFREQUENCYSETFACTORY_H
6#define BPP_PHYL_IO_IOFREQUENCYSETFACTORY_H
7
8#include <Bpp/Exceptions.h>
9
10#include "../Model/SubstitutionModel.h"
11#include "IoFrequencySet.h"
12
13// From the STL:
14#include <string>
15
16namespace bpp
17{
25{
26public:
27 static const std::string BPPO_FORMAT;
28
29public:
42
50 virtual std::unique_ptr<IFrequencySet> createReader(const std::string& format);
51
59 virtual std::unique_ptr<OFrequencySet> createWriter(const std::string& format);
60};
61} // end of namespace bpp.
62#endif // BPP_PHYL_IO_IOFREQUENCYSETFACTORY_H
Utilitary class for creating frequencies set readers and writers.
virtual std::unique_ptr< OFrequencySet > createWriter(const std::string &format)
Get a new dynamically created OFrequencySet object.
static const std::string BPPO_FORMAT
virtual std::unique_ptr< IFrequencySet > createReader(const std::string &format)
Get a new dynamically created IFrequencySet object.
IOFrequencySetFactory()
Creates a new factory object.
Defines the basic types of data flow nodes.