bpp-seq3  3.0.0
BppOAlignmentReaderFormat.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_SEQ_IO_BPPOALIGNMENTREADERFORMAT_H
6 #define BPP_SEQ_IO_BPPOALIGNMENTREADERFORMAT_H
7 
8 
9 #include "IoSequenceFactory.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  BppOAlignmentReaderFormat(int warningLevel) :
30  unparsedArguments_(), warningLevel_(warningLevel) {}
32 
33 public:
34  const std::string getFormatName() const { return "BppO"; }
35 
36  const std::string getFormatDescription() const { return "Bpp Options format."; }
37 
38  const std::string getDataType() const { return "Alignment reader"; }
39 
47  std::unique_ptr<IAlignment> read(const std::string& description);
48 
49  std::unique_ptr<IProbabilisticAlignment> readProbabilistic(const std::string& description);
50 
54  virtual const std::map<std::string, std::string>& getUnparsedArguments() const { return unparsedArguments_; }
55 };
56 } // end of namespace bpp.
57 #endif // BPP_SEQ_IO_BPPOALIGNMENTREADERFORMAT_H
Sequence I/O in BppO format.
const std::string getFormatName() const
std::unique_ptr< IAlignment > read(const std::string &description)
Read a IAlignment object from a string.
const std::string getDataType() const
virtual const std::map< std::string, std::string > & getUnparsedArguments() const
const std::string getFormatDescription() const
std::unique_ptr< IProbabilisticAlignment > readProbabilistic(const std::string &description)
std::map< std::string, std::string > unparsedArguments_
This alphabet is used to deal NumericAlphabet.