Describes a value domain for an enumerable fixed set of values.
More...
#include <valueParser.hpp>
Describes a value domain for an enumerable fixed set of values.
_Wolframe::config::Parser::EnumDomain::EnumDomain |
( |
unsigned int |
nofelems, |
|
|
const char ** |
elems |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
nofelems | number of elements in the enumeration |
elems | string representation of the elements in the enumeration |
string _Wolframe::config::Parser::EnumDomain::getDomainDescription |
( |
| ) |
const |
|
inline |
Get the description of the set of values allowed as string for the error log message.
template<typename ValueType >
bool _Wolframe::config::Parser::EnumDomain::parse |
( |
ValueType & |
value, |
|
|
const string & |
token, |
|
|
string & |
explanation |
|
) |
| const |
|
inline |
Parses the token string and maps it to its value representation.
- Template Parameters
-
ValueType | type of the value to get parsed |
- Parameters
-
[out] | value | parsed value returned |
[in] | token | token string to parse |
[out] | explanation | error string that will be part of the log message |
const char** _Wolframe::config::Parser::EnumDomain::m_ar |
|
private |
unsigned int _Wolframe::config::Parser::EnumDomain::m_size |
|
private |
The documentation for this class was generated from the following file: