Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::app::SettingsManager Class Reference

Handles saving and loading AppSettings to/from ~/.correlation/settings.json. More...

#include <SettingsManager.hpp>

Public Member Functions

 SettingsManager ()=delete

Static Public Member Functions

static std::filesystem::path settingsFilePath ()
 Gets the settings file path (~/.correlation/settings.json).
static AppSettings load ()
 Loads application settings from disk. Returns defaults if missing or invalid.
static bool save (const AppSettings &settings)
 Saves application settings to disk.

Detailed Description

Handles saving and loading AppSettings to/from ~/.correlation/settings.json.

Constructor & Destructor Documentation

◆ SettingsManager()

correlation::app::SettingsManager::SettingsManager ( )
delete

Member Function Documentation

◆ load()

AppSettings correlation::app::SettingsManager::load ( )
staticnodiscard

Loads application settings from disk. Returns defaults if missing or invalid.

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

◆ save()

bool correlation::app::SettingsManager::save ( const AppSettings & settings)
static

Saves application settings to disk.

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

◆ settingsFilePath()

std::filesystem::path correlation::app::SettingsManager::settingsFilePath ( )
staticnodiscard

Gets the settings file path (~/.correlation/settings.json).

Here is the caller graph for this function:

The documentation for this class was generated from the following files: