Define simple configuration on INI files.
Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Procedure
Subsystem calls its initialize method.
- Subsystem copies hardcoded default values to its in-memory state container.
- Subsystem defines the available config items it has, and how it is connected to various config sources (i.e. specify its section and key in the config file, as well as supplying command line options connected to this config item).
- Subsystem binds the config items with their respective sections and keys in the config file (i.e. correctly point the values to the respective internal state container of the app).
- Subsystem retrieves the config file values as well as command line arguments (higher priority) supplied to the app upon invocation.
- Subsystem checks if there are some volatile state data to retrieve and syncs it with the state.
- Subsystem saves the state to the config file.