common::ReadSettings

Read settings file.

Synopsis

Declared in <common/settings.h>

bool
ReadSettings(
    fs::path const& path,
    std::map<std::string, SettingsValue>& values,
    std::vector<std::string>& errors);

Return Value

true if the file was read successfully.

Parameters

NameDescription
pathPath to the settings file.
valuesPopulated with the settings read from the file.
errorsPopulated with any parse errors encountered.