Contract Class
A single validation rule applied to a NodeGroup. 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 (const NodeGroup &nodes, const ValidationContext &ctx, ValidationReport &report) const =0 |
|
Validate the node group and append issues to report. More... | |
Description
A single validation rule applied to a NodeGroup.
Contracts must:
- never include or call GStreamer APIs
- only use Node/NodeGroup/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 NodeGroup and appends issues to the report.
- See Also
- See Also
- See Also
Validators (built-in implementations)
Definition at line 81 of file Contract.h.
Public Destructor
~Contract()
| virtual default |
Virtual destructor — required for the abstract base.
Definition at line 84 of file Contract.h.
Public Member Functions
description()
| inline virtual |
Human-readable description (optional).
Definition at line 90 of file Contract.h.
id()
|
Stable identifier (used for filtering, report grouping).
Definition at line 87 of file Contract.h.
validate()
|
Validate the node group and append issues to report.
- Parameters
-
nodes The NodeGroup being validated.
ctx Validation context (mode, policy, strictness).
report Output report; the contract appends issues to it.
Definition at line 101 of file Contract.h.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.