Stored settings. This struct combines settings from the command line, a read‐only configuration file, and a read‐write runtime settings file.

Synopsis

Declared in <common/settings.h>

struct Settings;

Data Members

Name

Description

command_line_options

Map of setting name to list of command line values.

forced_settings

Map of setting name to forced setting value.

ro_config

Map of config section name and setting name to list of config file values.

rw_settings

Map of setting name to read‐write file setting value.

Non-Member Functions

Name

Description

GetSetting

Get settings value from combined sources: forced settings, command line arguments, runtime read‐write settings, and the read‐only config file.

GetSettingsList

Get combined setting value similar to GetSetting(), except if setting was specified multiple times, return a list of all the values specified.

OnlyHasDefaultSectionSetting

Return true if a setting is set in the default config file section, and not overridden by a higher priority command‐line or network section value.

Created with MrDocs