validators Namespace
Definition
Functions Index
| std::shared_ptr< Contract > | NonEmptyPipeline () |
|
Ensures NodeGroup is not empty. More... | |
| std::shared_ptr< Contract > | NoNullNodes () |
|
Ensures there are no null node pointers in the NodeGroup. More... | |
| std::shared_ptr< Contract > | SinkLastForRun (std::string sink_kind="Output") |
|
Ensures the configured sink kind exists and is last when ctx.mode == Run. More... | |
| std::shared_ptr< Contract > | RtspRequiresSource (std::string source_kind="StillImageInput") |
|
Ensures an RTSP source node exists when ctx.mode == Rtsp. More... | |
| ContractRegistry | DefaultRegistry () |
|
Reasonable default set of builder-level contracts. More... | |
Functions
DefaultRegistry()
| inline |
Reasonable default set of builder-level contracts.
Bundles NonEmptyPipeline, NoNullNodes, SinkLastForRun, and RtspRequiresSource into a fresh registry. Keep this purely structural (no GStreamer); domain-specific contracts should be added on top.
- Returns
New ContractRegistry populated with the default contracts.
Definition at line 217 of file Validators.h.
NonEmptyPipeline()
| inline |
Ensures NodeGroup is not empty.
Issues EMPTY_PIPELINE error when validated against an empty NodeGroup.
- Returns
Shared pointer to a fresh Contract instance.
Definition at line 43 of file Validators.h.
NoNullNodes()
| inline |
Ensures there are no null node pointers in the NodeGroup.
Issues a NULL_NODE error per offending index.
- Returns
Shared pointer to a fresh Contract instance.
Definition at line 72 of file Validators.h.
RtspRequiresSource()
| inline |
Ensures an RTSP source node exists when ctx.mode == Rtsp.
Builder-level: we only check presence of StillImageInput (or another configured kind). Issues RTSP_SOURCE_MISSING if no Node of the expected kind is found in the NodeGroup.
- Parameters
-
source_kind The Node kind expected to act as the RTSP source.
- Returns
Shared pointer to a fresh Contract instance.
Definition at line 165 of file Validators.h.
SinkLastForRun()
| inline |
Ensures the configured sink kind exists and is last when ctx.mode == Run.
This is the builder-level version of the "sink last" contract described in the architecture. Issues SINK_NOT_LAST if the last Node isn't of the expected kind, and MULTIPLE_SINKS if a sink-kind Node is found earlier in the chain.
- Parameters
-
sink_kind The Node kind expected as the terminal (default "Output").
- Returns
Shared pointer to a fresh Contract instance.
Definition at line 108 of file Validators.h.
The documentation for this namespace was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.