bpp-phyl3  3.0.0
BppOTreeReaderFormat.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_BPPOTREEREADERFORMAT_H
6 #define BPP_PHYL_IO_BPPOTREEREADERFORMAT_H
7 
8 
9 #include "IoTreeFactory.h"
10 
11 namespace bpp
12 {
22  public virtual IOFormat
23 {
24 private:
25  std::map<std::string, std::string> unparsedArguments_;
27 
28 public:
29  BppOTreeReaderFormat(int warningLevel) :
30  unparsedArguments_(), warningLevel_(warningLevel) {}
31 
32  virtual ~BppOTreeReaderFormat() {}
33 
34 public:
35  const std::string getFormatName() const { return "BppO"; }
36 
37  const std::string getFormatDescription() const { return "Bpp Options format."; }
38 
39  const std::string getDataType() const { return "Tree reader"; }
40 
48  std::unique_ptr<ITree> readITree(const std::string& description);
49 
53  virtual const std::map<std::string, std::string>& getUnparsedArguments() const { return unparsedArguments_; }
54 };
55 } // end of namespace bpp.
56 #endif // BPP_PHYL_IO_BPPOTREEREADERFORMAT_H
Tree I/O in BppO format.
std::unique_ptr< ITree > readITree(const std::string &description)
Read a ITree object from a string.
const std::string getFormatName() const
virtual const std::map< std::string, std::string > & getUnparsedArguments() const
const std::string getDataType() const
std::map< std::string, std::string > unparsedArguments_
BppOTreeReaderFormat(int warningLevel)
const std::string getFormatDescription() const
Defines the basic types of data flow nodes.