group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
user_settings Namespace Reference

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.

Detailed Description

User-settings persistence helpers.

Function Documentation

◆ getPath()

std::string user_settings::getPath ( )

Return the full path to the per-user settings TOML file.

Here is the caller graph for this function:

◆ load()

UserSettings user_settings::load ( const std::string & path)

Load settings from disk, falling back to defaults for missing or invalid values.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ save()

bool user_settings::save ( const std::string & path,
const UserSettings & settings )

Save settings to disk.

Here is the call graph for this function:
Here is the caller graph for this function: