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

Method getCustomKeyValue

src/OpenColorIO/ViewingRules.cpp:352–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352const char * ViewingRules::getCustomKeyValue(size_t ruleIndex, size_t key) const
353{
354 m_impl->validatePosition(ruleIndex);
355 try
356 {
357 return m_impl->m_rules[ruleIndex]->m_customKeys.getValue(key);
358 }
359 catch (Exception & e)
360 {
361 std::ostringstream oss;
362 oss << "Viewing rules: rule named '" << std::string(m_impl->m_rules[ruleIndex]->getName())
363 << "' error: " << e.what();
364 throw Exception(oss.str().c_str());
365 }
366}
367
368void ViewingRules::setCustomKey(size_t ruleIndex, const char * key, const char * value)
369{

Callers 1

ViewingRules.cppFile · 0.45

Calls 3

validatePositionMethod · 0.45
getValueMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected