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

Function WarnUnknownKeys

Modules/SceneSerialization/src/mitkSceneJsonReader.cpp:147–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146
147 void WarnUnknownKeys(const json &obj, const std::set<std::string> &known, const std::string &context)
148 {
149 if (!obj.is_object())
150 return;
151 for (auto it = obj.begin(); it != obj.end(); ++it)
152 {
153 if (known.find(it.key()) == known.end())
154 {
155 MITK_WARN << "Unknown key '" << it.key() << "' in " << context << " - ignoring.";
156 }
157 }
158 }
159
160 enum class LoadStyle
161 {

Callers 1

LoadSceneMethod · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected