| 224 | } |
| 225 | |
| 226 | void 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 | |
| 242 | void Camera::parseID(const xml_node &cur) { |
| 243 | if (name(cur) != "ID") |