| 123 | } |
| 124 | |
| 125 | void AddParameters(const std::map<std::string, us::Any>& parameters, tinyxml2::XMLElement* paramsNode) |
| 126 | { |
| 127 | auto* doc = paramsNode->GetDocument(); |
| 128 | for (const auto& param : parameters) |
| 129 | { |
| 130 | mitk::LocaleSwitch lswitch("C"); |
| 131 | auto paramNode = doc->NewElement("mp:parameter"); |
| 132 | paramNode->SetAttribute("name", param.first.c_str()); |
| 133 | auto* valueText = doc->NewText(param.second.ToString().c_str()); |
| 134 | paramNode->InsertEndChild(valueText); |
| 135 | paramsNode->InsertEndChild(paramNode); |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | void AddFeatures(const mitk::AbstractGlobalImageFeature::FeatureListType& features, tinyxml2::XMLElement* featsNode) |
| 140 | { |
no test coverage detected