DatabaseAssetInterface Class Reference

#include <database_asset.h>

Inheritance diagram for DatabaseAssetInterface:

Detailed Description

Implementation of DatabaseAsset.

Static Public Member Functions

static MAXON_METHOD Result< DatabaseAsset > Create ()
 
static MAXON_METHOD Result< StringGetRepositoryName (const AssetRepositoryRef &repository, const LanguageRef &language, const String &fallbackName, Bool addDetails)
 
static MAXON_METHOD Result< void > SetRepositoryName (const AssetRepositoryRef &repository, const String &name, const LanguageRef &language)
 

Private Member Functions

 MAXON_INTERFACE (DatabaseAssetInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.interface.databaseasset")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( DatabaseAssetInterface  ,
MAXON_REFERENCE_COPY_ON_WRITE  ,
"net.maxon.interface.databaseasset"   
)
private

◆ Create()

static MAXON_METHOD Result<DatabaseAsset> Create ( )
static

Create creates a new database asset.

Returns
DatabaseAsset on success.

◆ GetRepositoryName()

static MAXON_METHOD Result<String> GetRepositoryName ( const AssetRepositoryRef &  repository,
const LanguageRef &  language,
const String fallbackName,
Bool  addDetails 
)
static

GetRepositoryName returns the database name.

Parameters
[in]repositoryAsset repository to use.
[in]languageOptional Language. Default is the program language.
[in]fallbackNameFall back string of no name was found.
[in]addDetailsAdd additional details (like database name/url) to the name.
Returns
String on success.

◆ SetRepositoryName()

static MAXON_METHOD Result<void> SetRepositoryName ( const AssetRepositoryRef &  repository,
const String name,
const LanguageRef &  language 
)
static

SetRepositoryName stores a asset database name.

Parameters
[in]repositoryAsset repository to modify.
[in]nameName to store.
[in]languageOptional Language. Default is the program language.
Returns
OK on success.