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

Method getCustomKeyName

src/OpenColorIO/ViewingRules.cpp:336–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336const char * ViewingRules::getCustomKeyName(size_t ruleIndex, size_t key) const
337{
338 m_impl->validatePosition(ruleIndex);
339 try
340 {
341 return m_impl->m_rules[ruleIndex]->m_customKeys.getName(key);
342 }
343 catch (Exception & e)
344 {
345 std::ostringstream oss;
346 oss << "Viewing rules: rule named '" << std::string(m_impl->m_rules[ruleIndex]->getName())
347 << "' error: " << e.what();
348 throw Exception(oss.str().c_str());
349 }
350}
351
352const char * ViewingRules::getCustomKeyValue(size_t ruleIndex, size_t key) const
353{

Callers 1

ViewingRules.cppFile · 0.45

Calls 2

validatePositionMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected