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

Method getCustomKeyValue

src/OpenColorIO/FileRules.cpp:786–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784}
785
786const char * FileRules::getCustomKeyValue(size_t ruleIndex, size_t key) const
787{
788 m_impl->validatePosition(ruleIndex, Impl::DEFAULT_ALLOWED);
789 try
790 {
791 return m_impl->m_rules[ruleIndex]->m_customKeys.getValue(key);
792 }
793 catch (Exception & e)
794 {
795 std::ostringstream oss;
796 oss << "File rules: the custom key access for file rule '"
797 << std::string(m_impl->m_rules[ruleIndex]->getName())
798 << "' failed: " << e.what();
799 throw Exception(oss.str().c_str());
800 }
801}
802
803void FileRules::setCustomKey(size_t ruleIndex, const char * key, const char * value)
804{

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 3

validatePositionMethod · 0.45
getValueMethod · 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