45 [[nodiscard]]
static std::vector<Preset>
loadAll();
55 static void remove(
const std::string &name);
60 [[nodiscard]]
static std::string
toJson(
const Preset &preset);
Configuration structures and defaults for application analysis.
static Preset fromJson(const std::string &json)
Deserializes a Preset object from a JSON string.
Definition PresetManager.cpp:413
static void save(const Preset &preset)
Saves a preset to a JSON file in the presets directory.
Definition PresetManager.cpp:332
static std::vector< Preset > loadAll()
Loads all saved presets from the presets directory.
Definition PresetManager.cpp:301
static void remove(const std::string &name)
Deletes a saved preset by name.
Definition PresetManager.cpp:348
static std::filesystem::path presetsDirectory()
Gets the folder path where user presets are saved (~/.correlation/presets/).
Definition PresetManager.cpp:283
static std::string toJson(const Preset &preset)
Serializes a Preset object to a JSON string.
Definition PresetManager.cpp:364
Definition AppController.hpp:27
Represents a named set of user options for materials simulation analysis.
Definition PresetManager.hpp:23
std::string name
Definition PresetManager.hpp:24
std::string description
Definition PresetManager.hpp:25
ProgramOptions options
Definition PresetManager.hpp:26
Encapsulates all configurable options for the application.
Definition AppOptions.hpp:122