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")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( AssetBaseInterface  ,
MAXON_REFERENCE_COPY_ON_WRITE  ,
"net.maxon.interface.assetbase"   
)
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).