| 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 |
nothing calls this directly
no test coverage detected