ValidationContext Struct
Context passed to contracts during validation. More...
Declaration
Included Headers
Enumerations Index
| enum class | Mode { ... } |
Public Member Attributes Index
| Mode | mode = Mode::Validate |
| MemoryContract | runner_memory_contract = MemoryContract::AllowEitherButReport |
|
Desired runner memory posture (used only for reporting / soft checks). More... | |
| const Policy * | policy = nullptr |
|
Optional policy bundle. Contracts must not require it (may be null). More... | |
| bool | strict = true |
|
If false, contracts should prefer WARN over ERROR when reasonable. More... | |
Description
Context passed to contracts during validation.
Contracts are builder-level checks (no GStreamer). They validate structural expectations before Graph builds a gst-launch string.
- See Also
Definition at line 41 of file Contract.h.
Enumerations
Mode
| strong |
Which Graph entry point is being validated.
- Enumeration values
-
Validate validate() path (structural checks only, no PLAYING implied) (= 0) Run run() path (expects an Output terminal) Rtsp run_rtsp() path (expects StillImageInput, encoder/pay if modeled)
Some contracts only fire in specific modes (e.g., SinkLastForRun only checks for the Output terminal in Run mode).
Definition at line 48 of file Contract.h.
Public Member Attributes
mode
|
policy
|
Optional policy bundle. Contracts must not require it (may be null).
Definition at line 60 of file Contract.h.
runner_memory_contract
|
Desired runner memory posture (used only for reporting / soft checks).
Definition at line 57 of file Contract.h.
strict
|
If false, contracts should prefer WARN over ERROR when reasonable.
Definition at line 63 of file Contract.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.