| 329 | }; |
| 330 | |
| 331 | inline void loadCustomKeys(const YAML::Node& node, CustomKeysLoader & ck, const char* sectionName) |
| 332 | { |
| 333 | if (node.Type() == YAML::NodeType::Map) |
| 334 | { |
| 335 | for (Iterator iter = node.begin(); iter != node.end(); ++iter) |
| 336 | { |
| 337 | ck.m_keyVals.push_back(std::make_pair(iter->first, iter->second)); |
| 338 | } |
| 339 | } |
| 340 | else |
| 341 | { |
| 342 | std::ostringstream ss; |
| 343 | ss << "Expected a YAML map in the " << sectionName << " section."; |
| 344 | throwError(node, ss.str().c_str()); |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | // Interchange Attributes |
| 349 |
no test coverage detected