bpp-phyl3  3.0.0
IoTreeFactory.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_IOTREEFACTORY_H
6 #define BPP_PHYL_IO_IOTREEFACTORY_H
7 
8 
9 #include "IoTree.h"
10 
11 namespace bpp
12 {
20 {
21 public:
22  static const std::string NEWICK_FORMAT;
23  static const std::string NEXUS_FORMAT;
24  static const std::string NHX_FORMAT;
25 
26 public:
38  virtual ~IOTreeFactory() {}
39 
47  virtual ITree* createReader(const std::string& format);
48 
56  virtual OTree* createWriter(const std::string& format);
57 };
58 } // end of namespace bpp.
59 #endif // BPP_PHYL_IO_IOTREEFACTORY_H
Utilitary class for creating tree readers and writers.
Definition: IoTreeFactory.h:20
static const std::string NEXUS_FORMAT
Definition: IoTreeFactory.h:23
IOTreeFactory()
Creates a new factory object.
Definition: IoTreeFactory.h:37
virtual ~IOTreeFactory()
Definition: IoTreeFactory.h:38
virtual OTree * createWriter(const std::string &format)
Get a new dynamically created OTree object.
static const std::string NHX_FORMAT
Definition: IoTreeFactory.h:24
static const std::string NEWICK_FORMAT
Definition: IoTreeFactory.h:22
virtual ITree * createReader(const std::string &format)
Get a new dynamically created ITree object.
General interface for tree readers.
Definition: IoTree.h:59
General interface for tree writers.
Definition: IoTree.h:125
Defines the basic types of data flow nodes.