MCPcopy Create free account
hub / github.com/MITK/MITK / AddParameters

Function AddParameters

Modules/Classification/CLUtilities/src/mitkCLResultXMLWriter.cpp:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void 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
139void AddFeatures(const mitk::AbstractGlobalImageFeature::FeatureListType& features, tinyxml2::XMLElement* featsNode)
140{

Callers 2

AddFeatureSettingsFunction · 0.85
WriteDocumentFunction · 0.85

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected