19 unparsedArguments_.clear();
22 unique_ptr<OTree> oTree;
23 if (format ==
"Newick")
26 oTree.reset(
new Newick(allowComments));
28 else if (format ==
"Nhx")
30 oTree.reset(
new Nhx());
32 else if (format ==
"Nexus")
38 throw Exception(
"Tree format '" + format +
"' unknown.");
41 return oTree.release();
The so-called 'newick' parenthetic format.
a simple parser for reading trees from a Nexus file.
The so-called 'Nhx - New Hampshire eXtended' parenthetic format.
General interface for tree writers.
Defines the basic types of data flow nodes.