8QMap<ElementType, ElementMetadata> &ElementMetadataRegistry::registry()
16 static QMap<ElementType, ElementMetadata> s_registry;
22 registry()[meta.
type] = meta;
27 auto ® = registry();
29 if (!reg.contains(type)) {
30 throw PANDACEPTION_WITH_CONTEXT(
"ElementMetadataRegistry",
"No metadata registered for element type: %1",
static_cast<int>(type));
38 return registry().contains(type);
Common logging utilities, the Pandaception error type, and helper macros.
#define PANDACEPTION_WITH_CONTEXT(context, msg,...)
Enums::ElementType ElementType