#include <lazylanguagestringdatadescription.h>

Interface to manage lazy loading of LanguageStringDataDescriptionDefinition for description strings.
Public Member Functions | |
| MAXON_METHOD Result< DataDescriptionDefinition > | Get (const Id &languageId) const |
| MAXON_METHOD Result< void > | Set (const Id &languageId, const DataDescriptionDefinition &description) |
| MAXON_METHOD Result< void > | SetMetaData (const AssetMetaData &meta, const CString &path) |
| MAXON_METHOD Result< void > | LoadAll () |
| MAXON_METHOD Result< LanguageStringDataDescriptionDefinition > | GetMetaData () const |
Static Public Member Functions | |
| static const MAXON_METHOD LazyLanguageStringDataDescriptionDefinitionInterface * | NullValuePtr () |
Private Member Functions | |
| MAXON_INTERFACE (LazyLanguageStringDataDescriptionDefinitionInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.interface.lazylanguagestringdatadescriptiondefinition") | |
|
private |
| MAXON_METHOD Result<DataDescriptionDefinition> 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 DataDescriptionDefinition & | 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 definition 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<LanguageStringDataDescriptionDefinition> GetMetaData | ( | ) | const |
Returns all descriptions to export.
|
static |
Helper function to return the default value for an empty cow object.