diff options
-rw-r--r-- | slicer/slicer/parser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slicer/slicer/parser.cpp b/slicer/slicer/parser.cpp index 8193c9d..a154420 100644 --- a/slicer/slicer/parser.cpp +++ b/slicer/slicer/parser.cpp @@ -434,6 +434,9 @@ namespace Slicer { fprintf(cpp, "\t};\n"); fprintf(cpp, "\n"); + auto name = metaDataValue("slicer:root:", d->getMetaData()); + defineRootName(d->scoped(), name ? *name : d->name()); + fprintf(cpp, "template<>\nDLL_PUBLIC Metadata ModelPartForDictionary< %s >::metadata ", d->scoped().c_str()); copyMetadata(d->getMetaData()); |