MCPcopy Create free account
hub / github.com/darktable-org/rawspeed / parseHints

Method parseHints

src/librawspeed/metadata/Camera.cpp:226–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void Camera::parseHints(const xml_node &cur) {
227 if (name(cur) != "Hints")
228 ThrowCME("Not an Hints node!");
229
230 for (xml_node c : cur.children("Hint")) {
231 string name = c.attribute("name").as_string();
232 if (name.empty())
233 ThrowCME("Could not find name for hint for %s %s camera.", make.c_str(),
234 model.c_str());
235
236 string value = c.attribute("value").as_string();
237
238 hints.add(name, value);
239 }
240}
241
242void Camera::parseID(const xml_node &cur) {
243 if (name(cur) != "ID")

Callers

nothing calls this directly

Calls 3

nameFunction · 0.85
emptyMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected