Skip to main content

ValidationContext Struct

Context passed to contracts during validation. More...

Declaration

struct simaai::neat::ValidationContext { ... }

Included Headers

#include <Contract.h>

Enumerations Index

enum classMode { ... }

Which Session entry point is being validated. More...

Public Member Attributes Index

Modemode = Mode::Validate

Active Session mode. More...

MemoryContractrunner_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...

boolstrict = 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

Contract

Definition at line 39 of file Contract.h.

Enumerations

Mode

enum class simaai::neat::ValidationContext::Mode
strong

Which Session entry point is being validated.

Enumeration values
Validatevalidate() path (structural checks only, no PLAYING implied) (= 0)
Runrun() path (expects an Output terminal)
Rtsprun_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.

46 enum class Mode {
47 Validate = 0,
48 Run,
49 Rtsp,
50 };

Public Member Attributes

mode

Mode simaai::neat::ValidationContext::mode = Mode::Validate

Active Session mode.

Definition at line 52 of file Contract.h.

policy

const Policy* simaai::neat::ValidationContext::policy = nullptr

Optional policy bundle. Contracts must not require it (may be null).

Definition at line 58 of file Contract.h.

58 const Policy* policy = nullptr;

runner_memory_contract

MemoryContract simaai::neat::ValidationContext::runner_memory_contract = MemoryContract::AllowEitherButReport

Desired runner memory posture (used only for reporting / soft checks).

Definition at line 55 of file Contract.h.

strict

bool simaai::neat::ValidationContext::strict = true

If false, contracts should prefer WARN over ERROR when reasonable.

Definition at line 61 of file Contract.h.

61 bool strict = true;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.