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:1229
Result< typename std::conditional< GetCollectionKind< T >::value==COLLECTION_KIND::ARRAY, T, typename ByValueParam< T >::type >::type > Get() const
Definition: datatypebase.h:1389
Definition: apibaseid.h:243
Definition: datatypelib.h:32
const Id & Get() const
Definition: datatypelib.h:165
const Id & Get() const
Definition: apibaseid.h:159
static MAXON_METHOD LanguageRef GetDefaultLanguage()
Definition: string.h:1237
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:170
#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:1524