Contract Class
A single validation rule applied to an ordered node list. More...
Declaration
Included Headers
Public Destructor Index
| ~Contract ()=default | |
|
Virtual destructor — required for the abstract base. More... | |
Public Member Functions Index
| std::string | id () const =0 |
|
Stable identifier (used for filtering, report grouping). More... | |
| std::string | description () const |
|
Human-readable description (optional). More... | |
| void | validate (std::span< const std::shared_ptr< Node > > nodes, const ValidationContext &ctx, ValidationReport &report) const =0 |
|
Validate the node list and append issues to report. More... | |
Description
A single validation rule applied to an ordered node list.
Contracts must:
- never include or call GStreamer APIs
- only use Node/Graph/policy and STL
- report issues via ValidationReport (do not throw for normal violations)
Concrete contracts implement id(), optionally description(), and the core validate() method that inspects the node list and appends issues to the report.
- See Also
- See Also
- See Also
Validators (built-in implementations)
Definition at line 83 of file Contract.h.
Public Destructor
~Contract()
| virtual default |
Virtual destructor — required for the abstract base.
Definition at line 86 of file Contract.h.
Public Member Functions
description()
| inline virtual |
Human-readable description (optional).
Definition at line 92 of file Contract.h.