#include <datadescriptionpresetstorage.h>
Helper class to handle loading and saving of presets.
Static Public Member Functions | |
static MAXON_METHOD Result< PresetStorage > | LoadPreset (const AssetRepositoryRef &repository, const Id &presetIdentifier, const Id &presetName) |
static MAXON_METHOD Result< AssetDescription > | StorePreset (const AssetRepositoryRef &repository, const Id &presetIdentifier, const Id &presetName, const PresetStorage &presetData) |
static MAXON_METHOD Result< Bool > | DeletePreset (const AssetRepositoryRef &repository, const Id &presetIdentifier, const Id &presetName) |
static MAXON_METHOD Result< BaseArray< Id > > | GetPresetIdentifiers (const AssetRepositoryRef &repository) |
static MAXON_METHOD Result< BaseArray< Id > > | GetPresets (const AssetRepositoryRef &repository, const Id &presetIdentifier) |
static MAXON_METHOD Result< HashSet< InternedId > > | GetPresetAttributes (const AssetRepositoryRef &repository, const Id &presetIdentifier) |
static MAXON_METHOD Result< String > | GetPresetName (const AssetRepositoryRef &repository, const Id &presetIdentifier, const Id &presetName, const LanguageRef &language) |
static MAXON_METHOD Result< void > | SetPresetName (const AssetDescription &assetDescription, const Id &presetName, const String &name, const LanguageRef &language) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (DataDescriptionPresetStorageInterface, MAXON_REFERENCE_NONE, "net.maxon.interface.datadescriptionpresetstorage") | |
|
private |
|
static |
LoadPreset reads a preset from the database.
[in] | repository | Repository to search for presets (including it's bases). |
[in] | presetIdentifier | Identifier to check. |
[in] | presetName | Name of the preset. |
|
static |
StorePreset stores a preset under the given scope and id in the database.
[in] | repository | Repository to search for presets (including it's bases). |
[in] | presetIdentifier | Identifier to check. |
[in] | presetName | Name of the preset. |
[in] | presetData | Data to store. |
|
static |
DeletePreset deletes a preset from the database.
[in] | repository | Repository to search for presets (including it's bases). |
[in] | presetIdentifier | Identifier to check. |
[in] | presetName | Name of the preset. |
|
static |
Returns all preset identifiers registered under the given scope
[in] | repository | Repository to search for presets (including it's bases). |
|
static |
Returns all stored preset ids.
[in] | repository | Repository to search for presets (including it's bases). |
[in] | presetIdentifier | Identifier to check. |
|
static |
Returns all stored attribute ids of a given preset identifier database.
[in] | repository | Repository to search for presets (including it's bases). |
[in] | presetIdentifier | Identifier to check. |
|
static |
Returns the localized string of the preset name.
[in] | repository | Repository to search for presets (including it's bases). |
[in] | presetIdentifier | Identifier to check. |
[in] | presetName | Name of the preset. |
[in] | language | Language to find. |
|
static |