|
group2 0.1.0
CSE 125 Group 2
|
User-settings persistence helpers. More...
Functions | |
| std::string | getPath () |
| Return the full path to the per-user settings TOML file. | |
| UserSettings | load (const std::string &path) |
| Load settings from disk, falling back to defaults for missing or invalid values. | |
| bool | save (const std::string &path, const UserSettings &settings) |
| Save settings to disk. | |
User-settings persistence helpers.
| std::string user_settings::getPath | ( | ) |
Return the full path to the per-user settings TOML file.
| UserSettings user_settings::load | ( | const std::string & | path | ) |
Load settings from disk, falling back to defaults for missing or invalid values.
| bool user_settings::save | ( | const std::string & | path, |
| const UserSettings & | settings ) |
Save settings to disk.