bpp-phyl3
3.0.0
BppOTreeWriterFormat.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_BPPOTREEWRITERFORMAT_H
6
#define BPP_PHYL_IO_BPPOTREEWRITERFORMAT_H
7
8
9
#include "
IoTreeFactory.h
"
10
11
namespace
bpp
12
{
21
class
BppOTreeWriterFormat
:
22
public
virtual
IOFormat
23
{
24
private
:
25
std::map<std::string, std::string>
unparsedArguments_
;
26
int
warningLevel_
;
27
28
public
:
29
BppOTreeWriterFormat
(
int
warningLevel) :
30
unparsedArguments_
(),
warningLevel_
(warningLevel) {}
31
32
virtual
~BppOTreeWriterFormat
() {}
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 writer"
; }
40
48
OTree
*
readOTree
(
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_BPPOTREEWRITERFORMAT_H
IoTreeFactory.h
bpp::BppOTreeWriterFormat
Tree I/O in BppO format.
Definition:
BppOTreeWriterFormat.h:23
bpp::BppOTreeWriterFormat::readOTree
OTree * readOTree(const std::string &description)
Read a OTree object from a string.
Definition:
BppOTreeWriterFormat.cpp:17
bpp::BppOTreeWriterFormat::getFormatDescription
const std::string getFormatDescription() const
Definition:
BppOTreeWriterFormat.h:37
bpp::BppOTreeWriterFormat::~BppOTreeWriterFormat
virtual ~BppOTreeWriterFormat()
Definition:
BppOTreeWriterFormat.h:32
bpp::BppOTreeWriterFormat::unparsedArguments_
std::map< std::string, std::string > unparsedArguments_
Definition:
BppOTreeWriterFormat.h:25
bpp::BppOTreeWriterFormat::getDataType
const std::string getDataType() const
Definition:
BppOTreeWriterFormat.h:39
bpp::BppOTreeWriterFormat::BppOTreeWriterFormat
BppOTreeWriterFormat(int warningLevel)
Definition:
BppOTreeWriterFormat.h:29
bpp::BppOTreeWriterFormat::warningLevel_
int warningLevel_
Definition:
BppOTreeWriterFormat.h:26
bpp::BppOTreeWriterFormat::getFormatName
const std::string getFormatName() const
Definition:
BppOTreeWriterFormat.h:35
bpp::BppOTreeWriterFormat::getUnparsedArguments
virtual const std::map< std::string, std::string > & getUnparsedArguments() const
Definition:
BppOTreeWriterFormat.h:53
bpp::IOFormat
bpp::OTree
General interface for tree writers.
Definition:
IoTree.h:125
bpp
Defines the basic types of data flow nodes.
Bpp
Phyl
Io
BppOTreeWriterFormat.h
Generated on Fri Jul 19 2024 11:49:20 for bpp-phyl3 by
1.9.1