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 Session builds a gst-launch string.
- See Also
Definition at line 39 of file Contract.h.
Enumerations
Mode
| strong |
Which Session 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 46 of file Contract.h.
Public Member Attributes
mode
|
policy
|
Optional policy bundle. Contracts must not require it (may be null).
Definition at line 58 of file Contract.h.
runner_memory_contract
|
Desired runner memory posture (used only for reporting / soft checks).
Definition at line 55 of file Contract.h.
strict
|
If false, contracts should prefer WARN over ERROR when reasonable.
Definition at line 61 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.