common::WriteSettings

Write settings file.

Synopsis

Declared in <common/settings.h>

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

Return Value

true if the file was written successfully.

Parameters

NameDescription
pathPath to the settings file.
valuesThe settings to write.
errorsPopulated with any write errors encountered.