メインコンテンツまでスキップ

ValidationContext Struct

Context passed to contracts during validation. More...

Declaration​

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

Included Headers​

#include <Contract.h>

Enumerations Index​

enum classMode { ... }

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

Public Member Attributes Index​

Modemode = Mode::Validate

Active Graph 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 Graph builds a gst-launch string.

See Also

Contract

Definition at line 41 of file Contract.h.

Enumerations​

Mode​

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

Which Graph 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 48 of file Contract.h.

Public Member Attributes​

mode​

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

Active Graph mode.

Definition at line 54 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 60 of file Contract.h.

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 57 of file Contract.h.

strict​

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

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.