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 { ... }

Public Member Attributes Index

Modemode = Mode::Validate
MemoryContractrunner_memory_contract = MemoryContract::AllowEitherButReport
const Policy *policy = nullptr
boolstrict = true

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.

Definition at line 27 of file Contract.h.

Enumerations

Mode

enum class Mode
strong
Enumeration values
Validate (= 0)
Run
Rtsp

Definition at line 28 of file Contract.h.

28 enum class Mode {
29 Validate = 0, // "validate()" path (structural checks only, no PLAYING implied here)
30 Run, // "run()" path (expects Output terminal)
31 Rtsp, // "run_rtsp()" path (expects StillImageInput, encoder/pay if you model them)
32 };

Public Member Attributes

mode

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

Definition at line 34 of file Contract.h.

policy

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

Definition at line 40 of file Contract.h.

40 const Policy* policy = nullptr;

runner_memory_contract

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

strict

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

Definition at line 43 of file Contract.h.

43 bool strict = true;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.