‘int Value(const String& name, int default_value = 0) const’
Return the value associated with the configuration attribute
name
, converted to integer using the atoi(3) function.
If the attribute is not found in the configuration and
a
default_value
is provided, return it.
Return the value associated with the configuration attribute
name
, converted to double using the atof(3) function.
If the attribute is not found in the configuration and
a
default_value
is provided, return it.
‘int Boolean(const String& name, int default_value = 0) const’
Return 1 if the value associated to
name
is
either
1, yes
or
true
.
Return 0 if the value associated to
name
is
either
0, no
or
false
.
‘void Defaults(const ConfigDefaults *array)’
Load configuration attributes from the
name
and
value
members of the
array
argument.