Wolframe, 0.0.3

_Wolframe::config::Parser::NonEmptyDomain< DomainValueType > Struct Template Reference

#include <valueParser.hpp>

Inheritance diagram for _Wolframe::config::Parser::NonEmptyDomain< DomainValueType >:
_Wolframe::config::Parser::BaseTypeDomain

Public Member Functions

 NonEmptyDomain ()
 constructor More...
 
template<typename ValueType >
bool check (const ValueType &val, string &explanation) const
 Checks if the configuration value is in the expected domain, e.g. non empty. More...
 
- Public Member Functions inherited from _Wolframe::config::Parser::BaseTypeDomain
 BaseTypeDomain ()
 Constructor. More...
 
template<typename ValueType >
bool check (const ValueType &, string &) const
 Checks if the configuration value is in the expected domain. More...
 
template<typename ValueType >
bool parse (ValueType &value, const string &token, string &explanation) const
 Parses the token string and maps it to its value representation. More...
 

Constructor & Destructor Documentation

template<typename DomainValueType >
_Wolframe::config::Parser::NonEmptyDomain< DomainValueType >::NonEmptyDomain ( )
inline

constructor

Member Function Documentation

template<typename DomainValueType >
template<typename ValueType >
bool _Wolframe::config::Parser::NonEmptyDomain< DomainValueType >::check ( const ValueType &  val,
string explanation 
) const
inline

Checks if the configuration value is in the expected domain, e.g. non empty.

Template Parameters
ValueTypetype of the value to check
Parameters
[in]valvalue to check, if its in this domain
[out]explanationpart of the error message in case of error explaining why it failed

The documentation for this struct was generated from the following file: