![]() |
PIP 5.6.1
Platform-Independent Primitives
|
Configuration files parser and writer. More...
Classes | |
| class | PIConfig |
Parser and writer for configuration files with tree structure supportPIConfig provides functionality to read, write and manipulate configuration files in a tree-like structure. Supports dotted paths, INI-style section prefixes, multiline values and include entries resolved during parsing. More... | |
| class | PIConfig::Branch |
| Branch class - container for Entry objects. More... | |
| class | PIConfig::Entry |
| Node of the parsed configuration tree. More... | |
Functions | |
| PICout | operator<< (PICout s, const PIConfig::Branch &v) |
| Writes branch contents to PICout in tree form. | |
| PICout | operator<< (PICout s, const PIConfig::Entry &v) |
| Writes entry value, type and comment to PICout. | |
| template<typename T > | |
| T | readDeviceSetting (const PIString &name, const T &def, const PIConfig::Entry *em, const PIConfig::Entry *ep) |
| Helper for reading device settings from configuration entries. More... | |
Configuration files parser and writer.
| T readDeviceSetting | ( | const PIString & | name, |
| const T & | def, | ||
| const PIConfig::Entry * | em, | ||
| const PIConfig::Entry * | ep | ||
| ) |
Helper for reading device settings from configuration entries.
Tries to read "name" from parent section ep first, then from local section em, and falls back to "def" when neither exists.