|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_TAXONOMY_FORMATS_TAXOPATH_PARSER_H_
2 #define GENESIS_TAXONOMY_FORMATS_TAXOPATH_PARSER_H_
172 trim_whitespaces_ = value;
183 return trim_whitespaces_;
199 remove_trailing_delimiter_ = value;
211 return remove_trailing_delimiter_;
220 std::string delimiters_ =
";";
221 bool trim_whitespaces_ =
true;
222 bool remove_trailing_delimiter_ =
true;
229 #endif // include guard
TaxopathParser & delimiters(std::string const &value)
Set the chars used to split the taxonomic path string.
bool remove_trailing_delimiter() const
Return whether currently trailing delimiters are removed from the taxonomic path string.
Store a Taxon, i.e., an element in a Taxonomy, with its name, rank, ID and sub-taxa.
Helper class to store a taxonomic path.
TaxopathParser & operator=(TaxopathParser const &)=default
Taxopath parse(std::string const &taxopath) const
Parse a taxonomic path string into a Taxopath object and return it.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
TaxopathParser & remove_trailing_delimiter(bool value)
Set whether to remove an empty taxonomic element at the end, if it occurs.
std::string delimiters() const
Return the currelty set delimiter chars used to split the taxonomic path string.
TaxopathParser & trim_whitespaces(bool value)
Set whether to trim whitespaces around the taxonomic elements after splitting them.
Helper class to parse a string containing a taxonomic path string into a Taxopath object.
bool trim_whitespaces() const
Return the currently set value whether whitespaces are trimmed off the taxonomic elements.
~TaxopathParser()=default