ConfigIterator

Config Iterator. Iterates over variables of a category

Members

Functions

fill
void fill(cstring name, T instance)

Fills the properties of the given category into an instance representing that category.

opApply
int opApply(int delegate(ref istring name, ref T x) dg)

Variable Iterator. Iterates over variables of a category, with the foreach delegate being called with the name of the category (not including the root string prefix) and an instance containing the properties within that category.

opApply
int opApply(int delegate(ref istring name) dg)

Variable Iterator. Iterates over variables of a category, with the foreach delegate being called with only the name of the category (not including the root string prefix).

Variables

config
Source config;

The full parsed configuration. This contains all sections of the configuration, but only those that begin with the root string are iterated upon.

root
istring root;

The root string that is used to filter sections of the configuration over which to iterate. For instance, in a config file containing sections 'LOG.a', 'LOG.b', 'LOG.a.a1' etc., the root string would be "LOG".

Parameters

T

type of the class to iterate upon

Source

type of the source of values of the class' members - must provide foreach iteration over its elements (defaults to ConfigParser)

Meta