![]() |
Belle II Software release-09-00-03
|
The StringToVector class converts a given string to the std::vector<T>. More...
#include <ARICHDatabaseTools.h>

Static Public Member Functions | |
| template<typename T > | |
| static auto | convert (const std::string &rLine, const char delim=' ') -> std::vector< T > |
| convert<T> converts the given string in to a std::vector<T> elements seperated by the given delimiter | |
| template<typename T > | |
| static auto | parse (const std::string &rLine, const char delim=' ') -> std::string |
| parse<T> expands the given string and evaluats defined operators. | |
Static Public Attributes | |
| static const std::string | m_gRangeOperator |
| m_gRangeOperator is a std::wstring containing the range symbold | |
Static Private Member Functions | |
| template<typename T > | |
| static auto | expand (std::ostream &rStream, const char delim, const std::string &rToken) -> std::ostream & |
| expand<T> applies the given range and fills the given std::ostream with each element in range seperated by the delimiter char | |
The StringToVector class converts a given string to the std::vector<T>.
The input string is allowed to contain white spaces and the specific types.
Definition at line 351 of file ARICHDatabaseTools.h.
|
inlinestatic |
convert<T> converts the given string in to a std::vector<T> elements seperated by the given delimiter
| rLine | tokens seperated by the delimiter |
| delim | delimiter character |
| std::runtime_error() | if
|
Definition at line 371 of file ARICHDatabaseTools.h.
|
inlinestaticprivate |
expand<T> applies the given range and fills the given std::ostream with each element in range seperated by the delimiter char
| rStream | |
| delim | |
| rToken |
| std::runtime_error | if invalid range definition, ie A to B with A > B |
Definition at line 464 of file ARICHDatabaseTools.h.
|
inlinestatic |
parse<T> expands the given string and evaluats defined operators.
Currently only the range operator is defined and used.
| rLine | |
| delim |
| std::runtime_error() | if
|
Definition at line 415 of file ARICHDatabaseTools.h.
|
static |
m_gRangeOperator is a std::wstring containing the range symbold
Definition at line 356 of file ARICHDatabaseTools.h.