Configuration block in ConfigDocument.
More...
#include <Valuable/ConfigElement.hpp>
Configuration block in ConfigDocument.
| const ConfigElement& Valuable::ConfigElement::child |
( |
size_t |
n | ) |
const |
|
inline |
Returns the ith sub-element.
- Parameters
-
| n | Index of child, starting from 0 |
- Returns
- Child config element
Returns the ith sub-element.
- Parameters
-
| n | Index of child, starting from 0 |
- Returns
- Child config element
| ConfigValue* Valuable::ConfigElement::getConfigValue |
( |
const QString & |
key | ) |
|
Gets the value with the given name.
- Parameters
-
- Returns
- pointer to the value or 0 if the value is not found
| ConfigValue Valuable::ConfigElement::getConfigValueSafe |
( |
const QString & |
key | ) |
|
Gets the value with the given name.
- Parameters
-
- Returns
- copy of the value or an empty value if the given key is not found