The data in a DataDescription is stored as a DataDictionary.
The various attribute descriptions in the description are stored as DataDictionaries:
const maxon::Id dataType {
"net.maxonexample.class.descriptionElement" };
const auto attributes = descriptionData.GetEntries()
iferr_return;
for (const maxon::DataDictionary& attribute : attributes)
{
DiagnosticOutput(
"Attribute \"@\" of type @. Default value: @", ID, attributeDataType, defaultData);
ifnoerr (
const maxon::DataDictionary attributeString = descriptionStrings.GetEntry(ID))
{
}
}
@ DEFAULTVALUE
Dummy value for the default value GeData constructor.
Definition: c4d_gedata.h:65
static MAXON_METHOD Result< DataDescription > LoadDescription(const Id &category, const LanguageRef &language, const Id &dataType)
Definition: datatypebase.h:1204
Result< typename std::conditional< GetCollectionKind< T >::value==COLLECTION_KIND::ARRAY, T, typename ByValueParam< T >::type >::type > Get() const
Definition: datatypebase.h:1364
Definition: apibaseid.h:237
Definition: datatypelib.h:31
const Id & Get() const
Definition: datatypelib.h:164
const Id & Get() const
Definition: apibaseid.h:159
static MAXON_METHOD LanguageRef GetDefaultLanguage()
Definition: string.h:1235
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:176
#define ifnoerr(...)
The opposite of iferr.
Definition: errorbase.h:393
static constexpr LiteralId DATADESCRIPTION_CATEGORY_STRING
Definition: datadescriptiondatabase.h:17
static constexpr LiteralId DATADESCRIPTION_CATEGORY_DATA
Definition: datadescriptiondatabase.h:15
#define iferr_return
Definition: resultbase.h:1521