ConfigException
Returns the value of the given struct/value.
Default compare function, used with the LimitCmp struct/template
Set whether loose parsing is enabled or not. Loose parsing means, that variables that have no effect are allowed.
Creates an instance of T, and fills it with according values from the configuration file. The name of each variable will used to get it from the given section in the configuration file.
Fill the given instance of T with according values from the configuration file. The name of each variable will used to get it from the given section in the configuration file.
Creates an iterator that iterates over groups that start with a common string, filling an instance of the passed class type from the variables of each matching group and calling the delegate.
Fills the fields of the reference from config file's group.
Fills the fields of the reference from config file's group.
Config Iterator. Iterates over variables of a category
Configuration settings that are limited to a certain set of values can be marked as such by wrapping them with this template.
Configuration settings that are required to be within a certain numeric range can be marked as such by wrapping them with this template.
Configuration settings that are required to be within a certain numeric range can be marked as such by wrapping them with this template.
Configuration settings that are required to be within a certain numeric range can be marked as such by wrapping them with this template.
Configuration settings that are mandatory can be marked as such by wrapping them with this template. If the variable is not set, then an exception is thrown.
Adds the information of whether the filler actually set the value or whether it was left untouched.
Evaluates to the original type with which a Wrapper Struct was initialised
Template that evaluates to true when T is a supported type
Simplified version of LimitCmp that uses default comparison and default initializer
Simplified version of LimitCmp that uses default comparison
Contains methods used in all WrapperStructs to access and set the value variable
Required!(char[]) nodes_config; * MinMax — This numeric variable has to be within the specified range MinMax!(long, -10, 10) range; * Min — This numeric variable has to be >= the specified value Min!(int, -10) min_range; * Max — This numeric variable has to be <= the specified value Max!(int, 20) max_range; * LimitCmp — This variable must be one of the given values. To compare the config value with the given values, the given function will be used LimitCmp!(char[], "red", defComp!(char[]), "red", "green", "blue", "yellow") color; * LimitInit — This variable must be one of the given values, it will default to the given value. LimitInit!(char[], "red", "red", "green") color; * Limit — This variable must be one of the given values Limit!(char[], "up", "down", "left", "right") dir; * SetInfo — the 'set' member can be used to query whether this variable was set from the configuration file or not SetInfo!(bool) enable; // enable.set
Use debug=Config to get a printout of all the configuration options
Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).
Copyright (c) 2009-2016 dunnhumby Germany GmbH. All rights reserved.
Provides convenient functions to fill the values of a given aggregate.
Provides functions that use a given source to fill the member variables of a provided aggregate or newly created instance of a given class.
The provided class can use certain wrappers to add conditions or informations to the variable in question. The value of a wrapped variable can be accessed using the opCall syntax "variable()"
Overview of available wrappers:
* Required — This variable has to be set in the configuration file