#include <asset_utilities.h>
Helper Interface for Asset functions.
Static Public Member Functions | |
static MAXON_METHOD Result< String > | IncreaseAssetVersion (const String ¤tVersion) |
static MAXON_METHOD Result< void > | AssetSetMetaData (const AssetDescription &asset, const String &userAssetName, const String &assetVersion, const Id &assetCategory) |
static MAXON_METHOD Result< void > | AssetSetMetaData (const AssetDescription &asset, const BaseAssetMetaData &data) |
static MAXON_METHOD Result< Url > | GetAssetIcon (const AssetDescription &asset) |
static MAXON_METHOD Result< EnumDataType > | GetEnumTypeForVersions (const AssetRepositoryRef &repo, const AssetType &type, const Id &assetId) |
static MAXON_METHOD Result< void > | AssetSetCreationData (const AssetDescription &asset, Int c4dVersion, const String &c4dBuildId, Int releaseType) |
static MAXON_METHOD Result< void > | AssetSetCreationData (const AssetDescription &asset, const CreationAssetMetaData &data) |
static MAXON_METHOD Result< void > | AssetSetCreationData (const AssetDescription &asset) |
static MAXON_METHOD Result< DataDictionary > | GetMergedAssetOriginData (const AssetDescription &nodeAsset, const AssetLink &link, const LanguageRef &lang) |
static MAXON_METHOD Bool | HasUrlQueryCharacters (const String &query) |
static MAXON_METHOD Result< String > | ReplaceUrlQueryCharacters (const String &query) |
static MAXON_METHOD Result< void > | AppendUrlQueryVariable (String &query, const String &variableName, const String &variableValue) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (AssetUtilitiesInterface, MAXON_REFERENCE_STATIC, "net.maxon.asset.helperinterface", MAXON_IMPLEMENTATION_MODULE("net.maxon.asset")) | |
|
private |
|
static |
IncreaseAssetVersion description.
[in] | currentVersion | Increases the version string by one. e.g. "1.0" -> "1.1" or "1.0.99" -> "1.1.00" |
|
static |
Sets the asset's meta data. Deprecated. Use BaseAssetMetaData version.
|
static |
Sets the asset's meta data.
[in] | asset | Asset which will receive the meta data. |
[in] | data | Meta data to set. |
|
static |
|
static |
Returns an EnumDataType which contains all versions of the asset, plus an additional "latest" entry.
[in] | repo | The asset repository for the lookup. |
[in] | type | The asset type of the asset. |
[in] | assetId | The asset id to look for. |
|
static |
Sets the asset's creation meta data.
|
static |
Sets the asset's creation meta data.
[in] | asset | Asset which will receive the meta data. |
[in] | data | Meta data to set. |
|
static |
Sets the asset's creation meta data with current version's values.
[in] | asset | Asset which will receive the meta data. |
|
static |
Creates an updated version of the AssetLink's origin data, filled with missing informations from the asset's meta data. Result will be a merge #link origin data and a new origin data built from #nodeAsset.
[in] | nodeAsset | The asset. |
[in] | link | The link containing the origin data to update or fill. |
[in] | lang | Language to use for filling origin data. |
|
static |
Iterates through the given string to search for characters that would disrupt a Url URLFLAGS::QUERY. Like '=', '&'.
[in] | query | The query string to validate. |
|
static |
Iterates through the given string to replace characters that would disrupt a Url URLFLAGS::QUERY.
[in] | query | The query string to fix. |
|
static |
Appends a variable and value pair to the query string. Name and value will be cleansed of any unwanted characters. Appended result will be "name=value" with a '&' prefix if there was already some other variables in the query.
[in,out] | query | The query string to append to. |
[in] | variableName | The variable's identifier to append. |
[in] | variableValue | The variable's value to append. |