#include <datadescriptionpresetstorage.h>
|
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) |
|
◆ MAXON_INTERFACE_NONVIRTUAL()
◆ LoadPreset()
LoadPreset reads a preset from the database.
- Parameters
-
[in] | repository | Repository to search for presets (including it's bases). |
[in] | presetIdentifier | Identifier to check. |
[in] | presetName | Name of the preset. |
- Returns
- PresetStorage on success.
◆ StorePreset()
static MAXON_METHOD Result<AssetDescription> StorePreset |
( |
const AssetRepositoryRef & |
repository, |
|
|
const Id & |
presetIdentifier, |
|
|
const Id & |
presetName, |
|
|
const PresetStorage & |
presetData |
|
) |
| |
|
static |
StorePreset stores a preset under the given scope and id in the database.
- Parameters
-
[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. |
- Returns
- AssetDescription on success.
◆ DeletePreset()
static MAXON_METHOD Result<Bool> DeletePreset |
( |
const AssetRepositoryRef & |
repository, |
|
|
const Id & |
presetIdentifier, |
|
|
const Id & |
presetName |
|
) |
| |
|
static |
DeletePreset deletes a preset from the database.
- Parameters
-
[in] | repository | Repository to search for presets (including it's bases). |
[in] | presetIdentifier | Identifier to check. |
[in] | presetName | Name of the preset. |
- Returns
- true if the preset could be deleted. false if the repository which stores the asset is write protected.
◆ GetPresetIdentifiers()
Returns all preset identifiers registered under the given scope
- Parameters
-
[in] | repository | Repository to search for presets (including it's bases). |
- Returns
- Array of Ids on success.
◆ GetPresets()
Returns all stored preset ids.
- Parameters
-
[in] | repository | Repository to search for presets (including it's bases). |
[in] | presetIdentifier | Identifier to check. |
- Returns
- Array of Ids on success.
◆ GetPresetAttributes()
Returns all stored attribute ids of a given preset identifier database.
- Parameters
-
[in] | repository | Repository to search for presets (including it's bases). |
[in] | presetIdentifier | Identifier to check. |
- Returns
- Array of attribute ids on success.
◆ GetPresetName()
static MAXON_METHOD Result<String> GetPresetName |
( |
const AssetRepositoryRef & |
repository, |
|
|
const Id & |
presetIdentifier, |
|
|
const Id & |
presetName, |
|
|
const LanguageRef & |
language |
|
) |
| |
|
static |
Returns the localized string of the preset name.
- Parameters
-
[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. |
- Returns
- Localized String on success.
◆ SetPresetName()
static MAXON_METHOD Result<void> SetPresetName |
( |
const AssetDescription & |
assetDescription, |
|
|
const Id & |
presetName, |
|
|
const String & |
name, |
|
|
const LanguageRef & |
language |
|
) |
| |
|
static |
Sets the localized string of the preset name.
- Parameters
-
[in] | assetDescription | Asset to modify. |
[in] | presetName | Name of the preset. |
[in] | name | Localized String for the given language. |
[in] | language | Language to find. |
- Returns
- OK on success.