#include <nodedescription_asset.h>
Type interface for NodeDescriptionAsset. Allows to create new assets from a description and load descriptions from existing assets.
Public Member Functions | |
MAXON_METHOD Id | GetSuggestedCategory () const |
Static Public Member Functions | |
static MAXON_METHOD Result< AssetDescription > | StoreAsset (const DataDescriptionDefinitionWithUIAndLanguageStrings &desc, const AssetRepositoryRef &repo, const Id &assetId) |
static MAXON_METHOD Result< NodeDescriptionAsset > | LoadAsset (const AssetDescription &desc) |
Private Member Functions | |
MAXON_INTERFACE (NodeDescriptionAssetTypeInterface, MAXON_REFERENCE_CONST, "net.maxon.node.interface.asset.nodedescriptiontype") | |
|
private |
MAXON_METHOD Id GetSuggestedCategory | ( | ) | const |
Reads the default category identifier as suggested by the asset type.
|
static |
Creates and stores a complete description in a new NodeDescriptionAsset with identifier #assetId. AssetUtilitiesInterface::AssetSetMetaData can be called afterwards to setup name, version, ...
[in] | desc | The description to store. Categories are all optional. |
[in] | repo | The destination repository. |
[in] | assetId | The final NodeDescriptionAsset's identifier. |
|
static |
Loads the asset with all categories (including string languages).
[in] | desc | The asset to load. |