MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / loadCustomKeys

Function loadCustomKeys

src/OpenColorIO/OCIOYaml.cpp:331–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329};
330
331inline 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

Callers 2

loadFunction · 0.85

Calls 4

throwErrorFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected