bpp-core3  3.0.0
BppOParametrizableFormat.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_IO_BPPOPARAMETRIZABLEFORMAT_H
6 #define BPP_IO_BPPOPARAMETRIZABLEFORMAT_H
7 
8 
9 #include "IoParametrizable.h"
10 
11 namespace bpp
12 {
22  public virtual OParametrizable
23 {
24 public:
27 
28 public:
29  const std::string getFormatName() const override { return "BppO"; }
30 
31  const std::string getFormatDescription() const override { return "Bpp Options format."; }
32 
33  void write(const Parametrizable& parametrizable,
34  OutputStream& out,
35  std::vector<std::string>& writtenNames,
36  bool printComma = false) const override;
37 
38  void write(const ParameterAliasable& parametrizable,
39  OutputStream& out,
40  std::map<std::string, std::string>& globalAliases,
41  const std::vector<std::string>& names,
42  std::vector<std::string>& writtenNames,
43  bool printLocalAliases = true,
44  bool printComma = false) const override;
45 };
46 } // end of namespace bpp.
47 #endif // BPP_IO_BPPOPARAMETRIZABLEFORMAT_H
General interface writers.
const std::string getFormatDescription() const override
Get a description of the file format.
Extend the Parametrizable interface with support for parameter aliases.
Parametrizable output in BppO format.
This is the interface for all objects that imply parameters.
void write(const Parametrizable &parametrizable, OutputStream &out, std::vector< std::string > &writtenNames, bool printComma=false) const override
Write a Parametrizable to a stream.
OutputStream interface.
Definition: OutputStream.h:29
const std::string getFormatName() const override
Get the name of the file format.