ContinuityRuleValidator.h header

#include <ew/app/timeline/ContinuityRuleValidator.h>

Namespace ew::app::timeline

Functions

std::vector< ew::app::diagnostics::Diagnostic > ew::app::timeline::validateContinuityRules(const ew::core::project::Project &project, const std::vector< ew::core::timeline::ContinuityRule > &rules)

Evaluates the project's user-authored continuity rules (DESIGN 4.5 "user rules"; see ew::core::timeline::ContinuityRule) against the codex, returning a finding for each rule that is violated, so they list in the Conflicts dock beside the built-in checks.

A rule is violated when its target entity is missing, or when the entity's value for the rule's field – taken at the rule's instant via Entity::valueAt, or its base value when the rule has no instant – does not satisfy the rule's comparison with the expected value.

Every finding carries the rule id timeline/continuity-rule and names the entity in its subjects, so the dock can jump to it. The rule's OWN id goes in the anchor, so silencing a finding from one authored rule does not silence findings from another about the same entity.