AssetBaseInterface Class Reference

#include <assets.h>

Inheritance diagram for AssetBaseInterface:

Detailed Description

The base interface of AssetBaseWithUpdateInterface and AssetDescriptionInterface. It inherits from AssetIdentifierInterface and adds methods to obtain the repository.

Public Member Functions

MAXON_METHOD const IdGetRepositoryId () const
 
MAXON_METHOD AssetRepositoryRef GetRepository () const
 

Private Member Functions

 MAXON_INTERFACE (AssetBaseInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.interface.assetbase", MAXON_IMPLEMENTATION_MODULE("net.maxon.asset"))
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( AssetBaseInterface  ,
MAXON_REFERENCE_COPY_ON_WRITE  ,
"net.maxon.interface.assetbase"  ,
MAXON_IMPLEMENTATION_MODULE("net.maxon.asset")   
)
private

◆ GetRepositoryId()

MAXON_METHOD const Id& GetRepositoryId ( ) const

Returns the identifier of the repository where this asset is stored.

Returns
Asset repository identifier (empty when the asset doesn't belong to a repository).

◆ GetRepository()

MAXON_METHOD AssetRepositoryRef GetRepository ( ) const

Returns the repository where this asset is stored. The implementation should use a weak reference to avoid circular references.

Returns
Asset repository (empty when the asset doesn't belong to a repository).