common::GetSettingsList

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

Synopsis

Declared in <common/settings.h>

std::vector<SettingsValue>
GetSettingsList(
    Settings const& settings,
    std::string const& section,
    std::string const& name,
    bool ignore_default_section_config);

Return Value

The list of values specified for the setting.

Parameters

NameDescription
settingsThe combined settings sources to read from.
sectionThe config section to look up (e.g. the network name).
nameThe setting name to look up.
ignore_default_section_configIgnore values in the default (unsectioned) config.