Application-level properties with platform-standard paths.
More...
#include <properties_file.hpp>
Application-level properties with platform-standard paths.
Provides user-specific and shared settings.
◆ ApplicationProperties()
| pulp::state::ApplicationProperties::ApplicationProperties |
( |
std::string_view | app_name | ) |
|
|
explicit |
Initialize with application name (determines storage path).
◆ app_name()
| const std::string & pulp::state::ApplicationProperties::app_name |
( |
| ) |
const |
|
inline |
◆ common_settings() [1/2]
| PropertiesFile & pulp::state::ApplicationProperties::common_settings |
( |
| ) |
|
|
inline |
Common/shared settings (e.g., /Library/Application Support/AppName/settings.json).
◆ common_settings() [2/2]
| const PropertiesFile & pulp::state::ApplicationProperties::common_settings |
( |
| ) |
const |
|
inline |
◆ common_settings_dir()
| std::string pulp::state::ApplicationProperties::common_settings_dir |
( |
std::string_view | app_name | ) |
|
|
static |
Platform-specific common settings directory.
◆ load()
| void pulp::state::ApplicationProperties::load |
( |
| ) |
|
Load both user and common settings from their platform paths.
◆ save()
| void pulp::state::ApplicationProperties::save |
( |
| ) |
|
Save both settings files.
◆ user_settings() [1/2]
| PropertiesFile & pulp::state::ApplicationProperties::user_settings |
( |
| ) |
|
|
inline |
User-specific settings (e.g., ~/Library/Preferences/AppName.json on macOS).
◆ user_settings() [2/2]
| const PropertiesFile & pulp::state::ApplicationProperties::user_settings |
( |
| ) |
const |
|
inline |
◆ user_settings_dir()
| std::string pulp::state::ApplicationProperties::user_settings_dir |
( |
std::string_view | app_name | ) |
|
|
static |
Platform-specific user settings directory.
The documentation for this class was generated from the following file: