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

Method validatePosition

src/OpenColorIO/ViewingRules.cpp:166–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void ViewingRules::Impl::validatePosition(size_t ruleIndex) const
167{
168 const auto numRules = m_rules.size();
169 if (ruleIndex >= numRules)
170 {
171 std::ostringstream oss;
172 oss << "Viewing rules: rule index '" << ruleIndex << "' invalid."
173 << " There are only '" << numRules << "' rules.";
174 throw Exception(oss.str().c_str());
175 }
176}
177
178void ViewingRules::Impl::validateNewRule(const char * name) const
179{

Callers 13

getNameMethod · 0.45
getNumColorSpacesMethod · 0.45
getColorSpaceMethod · 0.45
addColorSpaceMethod · 0.45
getNumEncodingsMethod · 0.45
getEncodingMethod · 0.45
addEncodingMethod · 0.45
getNumCustomKeysMethod · 0.45
getCustomKeyNameMethod · 0.45
getCustomKeyValueMethod · 0.45
setCustomKeyMethod · 0.45
insertRuleMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected