Contract.h File
Builder-level validation contracts. More...
Included Headers
#include <memory>
#include <string>
#include "builder/NodeGroup.h"
#include "contracts/ContractTypes.h"
#include "contracts/ValidationReport.h"
Namespaces Index
| namespace | simaai |
| namespace | neat |
Classes Index
| struct | ValidationContext |
|
Context passed to contracts during validation. More... | |
| class | Contract |
|
A single validation rule applied to a NodeGroup. More... | |
Description
Builder-level validation contracts.
Defines the Contract base class — a typed predicate over a NodeGroup — plus the ValidationContext passed to each contract during validation. Contracts are pure builder-level checks (STL only, no GStreamer); they report findings through ValidationReport rather than throwing.
- See Also
ContractRegistry
- See Also
Validators
- See Also
ValidationReport
File Listing
The file content with the documentation metadata removed is:
22#include "contracts/ContractTypes.h"
23#include "contracts/ValidationReport.h"
25namespace simaai::neat {
39struct ValidationContext {
47 Validate = 0,
48 Run,
49 Rtsp,
52 Mode mode = Mode::Validate;
90 virtual std::string description() const {
101 virtual void validate(const NodeGroup& nodes, const ValidationContext& ctx,
102 ValidationReport& report) const = 0;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.