allow injection of pre-defined structures

until I figure out how to dynamically construct
structure arrays.
This commit is contained in:
Michael Davidsaver
2017-09-14 18:43:40 -05:00
parent 44c8cd95e6
commit eb92401175
3 changed files with 59 additions and 6 deletions
+3 -4
View File
@@ -50,8 +50,6 @@ struct context {
if(key=="+type") {
fld.type = value.ref<std::string>();
if(fld.type.empty())
throw std::runtime_error("+type can't be empty string");
} else if(key=="+channel") {
fld.channel = value.ref<std::string>();
@@ -60,8 +58,9 @@ struct context {
} else if(key=="+trigger") {
fld.trigger = value.ref<std::string>();
if(fld.trigger.empty())
throw std::runtime_error("+trigger can't be empty string");
} else if(key=="+predef") {
fld.predef = value.ref<std::string>();
} else if(key=="+putorder") {
fld.putorder = value.as<pvd::int32>();