bpp-seq3  3.0.0
IoDistanceMatrixFactory.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_LEGACY_IO_IODISTANCEMATRIXFACTORY_H
6 #define BPP_PHYL_LEGACY_IO_IODISTANCEMATRIXFACTORY_H
7 
8 #include <Bpp/Exceptions.h>
9 
10 #include "IoDistanceMatrix.h"
11 
12 // From the STL:
13 #include <string>
14 
15 namespace bpp
16 {
24 {
25 public:
26  static const std::string PHYLIP_FORMAT;
27 
28 public:
40 
50  virtual std::unique_ptr<IDistanceMatrix> createReader(const std::string& format, bool extended = false);
51 
61  virtual std::unique_ptr<ODistanceMatrix> createWriter(const std::string& format, bool extended = false);
62 };
63 } // end of namespace bpp.
64 
65 #endif // BPP_PHYL_LEGACY_IO_IODISTANCEMATRIXFACTORY_H
Utilitary class for creating distance matrix readers and writers.
virtual std::unique_ptr< ODistanceMatrix > createWriter(const std::string &format, bool extended=false)
Get a new dynamically created ODistanceMatrix object.
virtual std::unique_ptr< IDistanceMatrix > createReader(const std::string &format, bool extended=false)
Get a new dynamically created IDistanceMatrix object.
IODistanceMatrixFactory()
Creates a new factory object.
static const std::string PHYLIP_FORMAT
This alphabet is used to deal NumericAlphabet.