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

Method setCustomKey

src/OpenColorIO/ViewingRules.cpp:368–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368void ViewingRules::setCustomKey(size_t ruleIndex, const char * key, const char * value)
369{
370 m_impl->validatePosition(ruleIndex);
371 try
372 {
373 m_impl->m_rules[ruleIndex]->m_customKeys.set(key, value);
374 }
375 catch (Exception & e)
376 {
377 std::ostringstream oss;
378 oss << "Viewing rules: rule named '" << std::string(m_impl->m_rules[ruleIndex]->getName())
379 << "' error: " << e.what();
380 throw Exception(oss.str().c_str());
381 }
382}
383
384void ViewingRules::insertRule(size_t ruleIndex, const char * name)
385{

Callers

nothing calls this directly

Calls 3

setMethod · 0.80
validatePositionMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected