diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-10-12 21:28:14 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-10-12 21:28:14 +0100 |
commit | c09fd687686d06a8c13decc61f2db472cd2dc031 (patch) | |
tree | 3461d3cedefde0550732932fbadd6693c88be407 | |
parent | Add Slicer support for deserializing a SQL select (diff) | |
download | slicer-c09fd687686d06a8c13decc61f2db472cd2dc031.tar.bz2 slicer-c09fd687686d06a8c13decc61f2db472cd2dc031.tar.xz slicer-c09fd687686d06a8c13decc61f2db472cd2dc031.zip |
Add missing root name for dictionary types
-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()); |