#include <lazylanguagestringdatadescription.h>
Interface to manage lazy loading of LanguageDictionary for description strings.
Public Member Functions | |
MAXON_METHOD Result< DataDictionary > | Get (const Id &languageId) const |
MAXON_METHOD Result< void > | Set (const Id &languageId, const DataDictionary &description) |
MAXON_METHOD Result< void > | SetMetaData (const AssetMetaData &meta, const CString &path) |
MAXON_METHOD Result< void > | LoadAll () |
MAXON_METHOD Result< LanguageDictionary > | GetMetaData () const |
Static Public Member Functions | |
static MAXON_METHOD const LazyLanguageDictionaryInterface * | DefaultValuePtr () |
Private Member Functions | |
MAXON_INTERFACE (LazyLanguageDictionaryInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.interface.lazylanguagedictionary") | |
|
private |
MAXON_METHOD Result<DataDictionary> Get | ( | const Id & | languageId | ) | const |
Returns the description of the given language.
[in] | languageId | Id of the language to load. |
MAXON_METHOD Result<void> Set | ( | const Id & | languageId, |
const DataDictionary & | description | ||
) |
Stores the description for the given language.
[in] | languageId | Id of the language to store. |
[in] | description | Description to store. |
MAXON_METHOD Result<void> SetMetaData | ( | const AssetMetaData & | meta, |
const CString & | path | ||
) |
Sets the asset from which the description shall be loaded lazily.
[in] | meta | Asset meta data to use for loading the strings. |
[in] | path | Relative path of the description within the asset. |
MAXON_METHOD Result<void> LoadAll | ( | ) |
Loads all string resources from the meta data into memory (e.g. for copying data).
MAXON_METHOD Result<LanguageDictionary> GetMetaData | ( | ) | const |
Returns all descriptions to export.
|
static |
Helper function to return the default value for an empty cow object.