Manages saving and loading analysis parameter presets to/from JSON files.
More...
#include <PresetManager.hpp>
|
| static std::filesystem::path | presetsDirectory () |
| | Gets the folder path where user presets are saved (~/.correlation/presets/).
|
| static std::vector< Preset > | loadAll () |
| | Loads all saved presets from the presets directory.
|
| static void | save (const Preset &preset) |
| | Saves a preset to a JSON file in the presets directory.
|
| static void | remove (const std::string &name) |
| | Deletes a saved preset by name.
|
| static std::string | toJson (const Preset &preset) |
| | Serializes a Preset object to a JSON string.
|
| static Preset | fromJson (const std::string &json) |
| | Deserializes a Preset object from a JSON string.
|
Manages saving and loading analysis parameter presets to/from JSON files.
◆ PresetManager()
| correlation::app::PresetManager::PresetManager |
( |
| ) |
|
|
delete |
◆ fromJson()
| Preset correlation::app::PresetManager::fromJson |
( |
const std::string & | json | ) |
|
|
staticnodiscard |
Deserializes a Preset object from a JSON string.
◆ loadAll()
| std::vector< Preset > correlation::app::PresetManager::loadAll |
( |
| ) |
|
|
staticnodiscard |
Loads all saved presets from the presets directory.
◆ presetsDirectory()
| std::filesystem::path correlation::app::PresetManager::presetsDirectory |
( |
| ) |
|
|
staticnodiscard |
Gets the folder path where user presets are saved (~/.correlation/presets/).
◆ remove()
| void correlation::app::PresetManager::remove |
( |
const std::string & | name | ) |
|
|
static |
Deletes a saved preset by name.
◆ save()
| void correlation::app::PresetManager::save |
( |
const Preset & | preset | ) |
|
|
static |
Saves a preset to a JSON file in the presets directory.
◆ toJson()
| std::string correlation::app::PresetManager::toJson |
( |
const Preset & | preset | ) |
|
|
staticnodiscard |
Serializes a Preset object to a JSON string.
The documentation for this class was generated from the following files: