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

Method validate

src/OpenColorIO/FileRules.cpp:506–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504 }
505
506 void validate(const Config & cfg) const
507 {
508 if (m_type != FILE_RULE_PARSE_FILEPATH)
509 {
510 // Can be a color space, a role (all color spaces) or a named transform.
511 if (!cfg.getColorSpace(m_colorSpace.c_str()))
512 {
513 if (!cfg.getNamedTransform(m_colorSpace.c_str()))
514 {
515 std::ostringstream oss;
516 oss << "File rules: rule named '" << m_name << "' is referencing '"
517 << m_colorSpace << "' that is neither a color space nor a named "
518 "transform.";
519 throw Exception(oss.str().c_str());
520 }
521 }
522 }
523 }
524
525 CustomKeysContainer m_customKeys;
526

Callers

nothing calls this directly

Calls 2

getColorSpaceMethod · 0.45
getNamedTransformMethod · 0.45

Tested by

no test coverage detected