common::Settings

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

NameDescription
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

NameDescription
GetSettingGet settings value from combined sources: forced settings, command line arguments, runtime read-write settings, and the read-only config file.
GetSettingsListGet combined setting value similar to GetSetting(), except if setting was specified multiple times, return a list of all the values specified.
OnlyHasDefaultSectionSettingReturn 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.