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

Method getCustomKeyName

src/OpenColorIO/FileRules.cpp:769–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767}
768
769const char * FileRules::getCustomKeyName(size_t ruleIndex, size_t key) const
770{
771 m_impl->validatePosition(ruleIndex, Impl::DEFAULT_ALLOWED);
772 try
773 {
774 return m_impl->m_rules[ruleIndex]->m_customKeys.getName(key);
775 }
776 catch (Exception & e)
777 {
778 std::ostringstream oss;
779 oss << "File rules: the custom key access for file rule '"
780 << std::string(m_impl->m_rules[ruleIndex]->getName())
781 << "' failed: " << e.what();
782 throw Exception(oss.str().c_str());
783 }
784}
785
786const char * FileRules::getCustomKeyValue(size_t ruleIndex, size_t key) const
787{

Callers 15

test_copyMethod · 0.95
test_custom_keysMethod · 0.95
_get_itemsMethod · 0.45
_get_itemsMethod · 0.45
saveFunction · 0.45
FileRules.cppFile · 0.45
fileRulesAreEqualFunction · 0.45
copyRuleFunction · 0.45
viewingRulesAreEqualFunction · 0.45
copyViewingRuleFunction · 0.45
test_copyMethod · 0.45
test_custom_keysMethod · 0.45

Calls 2

validatePositionMethod · 0.45
getNameMethod · 0.45

Tested by 8

test_copyMethod · 0.76
test_custom_keysMethod · 0.76
test_copyMethod · 0.36
test_custom_keysMethod · 0.36
test_configMethod · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36