std::string correct_parameter_tag(const ParameterMapItem& item) { std::string tag = item.getTag(); if (tag != ID_xmltag__param) { std::string error = "The XML tag was '" + tag + "' but should be '" + ID_xmltag__param + "'.\n"; return error; } else { return ""; } }
static ParameterGroup convert(const ParameterMapItem& item, std::string& conversion_error) { std::string tag = item.getTag(); if (tag != ID_xmltag__param_grp) { conversion_error = "The XML tag was '" + tag + "' but should be '" + ID_xmltag__param_grp + "'.\n"; return ParameterGroup("", 0); } conversion_error = ""; const ParameterGroup& pg = dynamic_cast<const ParameterGroup&>(item); return pg; }