bpp-phyl3  3.0.0
IoFrequencySetFactory.cpp
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
6 
7 using namespace bpp;
8 
9 const std::string IOFrequencySetFactory::BPPO_FORMAT = "Bpp0";
10 
12 {
13  if (format == BPPO_FORMAT)
15  else
16  throw Exception("Format " + format + " is not supported for input.");
17 }
18 
20 {
21  if (format == BPPO_FORMAT)
23  else
24  throw Exception("Format " + format + " is not supported for output.");
25 }
Frequencies set I/O in BppO format.
General interface for distance matrix readers.
static const std::string BPPO_FORMAT
virtual IFrequencySet * createReader(const std::string &format)
Get a new dynamically created IFrequencySet object.
virtual OFrequencySet * createWriter(const std::string &format)
Get a new dynamically created OFrequencySet object.
General interface for distance matrix writers.
Defines the basic types of data flow nodes.