PIP 5.6.1
Platform-Independent Primitives
Configuration from file

PIConfig parses and writes configuration from files, strings, or any PIIODevice. The internal model is a tree of entries; each node is PIConfig::Entry, and a list of entries is PIConfig::Branch. Use dotted paths to get values, e.g. getValue("section.key.subkey"). Supports INI-style [section] prefixes, multiline values, and include directives resolved at parse time.

Typical use: open a file or device, then call getValue(name) or getValue(name, default) on the root or on a PIConfig::Branch. Overloads exist for string, numeric, and bool defaults. To configure an I/O device from config, pass PIConfig::Entry pointers to PIIODevice::configure(); see PIIODevice and device-specific headers.