maxon.AssetMetaDataInterface

Description

maxon.AssetMetaData allows to query the meta data of an asset. It is returned by maxon.AssetDescriptionInterface.GetMetaData(). The methods of this interface are thread-safe, but the meta data of an asset may be hanged concurrently, so the returned values may differ from call to call even when the calling thread made no modification inbetween.

You can’t modify the meta data of an asset through this interface, you have to use maxon.AssetDescriptionInterface.StoreMetaData() instead.

Inheritance diagram

Inheritance

Parent Class:

Child Class:

Methods Signature

Get(metaId[, defaultValue])

Returns the current value of the meta data entry for the meta data attribute #metaId.

GetExistingEntries()

Returns an array with the current set of meta data entries.

GetTimeStamp(metaId)

Returns the time stamp for the meta data attribute #metaId.

Methods Definition

AssetMetaDataInterface.Get(metaId, defaultValue=None)

Returns the current value of the meta data entry for the meta data attribute #metaId.

Parameters
  • metaId (maxon.InternedId) – The identifier of the meta data attribute.

  • defaultValue (Any) – The default value to use when there is no entry.

Returns

The current value for the id, or the defaultValue if there is no entry.
An error is returned if there is an entry, but loading the entry value fails.

Note

The returned value may differ from call to call because another thread could have modified the meta data inbetween.

Return type

maxon.Data

AssetMetaDataInterface.GetExistingEntries()

Returns an array with the current set of meta data entries.

Returns

The current set of meta data entries given by the meta data attribute id and kind.

Note

The returned value may differ from call to call because another thread could have modified the meta data inbetween.

Return type

maxon.BaseArray [maxon.Tuple [maxon.InternedId, maxon.AssetMetaDataInterface.KIND]]

AssetMetaDataInterface.GetTimeStamp(metaId)

Returns the time stamp for the meta data attribute #metaId. The time stamp is increased each time the value changes.

Parameters

metaId (maxon.InternedId) – The identifier of the meta data attribute.

Returns

The time stamp for the attribute, or 0 if there is no entry for the attribute.

Note

The returned value may differ from call to call because another thread could have modified the meta data inbetween.

Return type

int