Skip to main content

Contract Class

A single validation rule applied to a NodeGroup. More...

Declaration

class simaai::neat::Contract { ... }

Included Headers

#include <Contract.h>

Public Destructor Index

~Contract ()=default

Virtual destructor — required for the abstract base. More...

Public Member Functions Index

std::stringid () const =0

Stable identifier (used for filtering, report grouping). More...

std::stringdescription () const

Human-readable description (optional). More...

voidvalidate (const NodeGroup &nodes, const ValidationContext &ctx, ValidationReport &report) const =0

Validate the node group and append issues to report. More...

Description

A single validation rule applied to a NodeGroup.

Contracts must:

  • never include or call GStreamer APIs
  • only use Node/NodeGroup/Graph/policy and STL
  • report issues via ValidationReport (do not throw for normal violations)

Concrete contracts implement id(), optionally description(), and the core validate() method that inspects the NodeGroup and appends issues to the report.

See Also

ContractRegistry

See Also

ValidationReport

See Also

Validators (built-in implementations)

Definition at line 81 of file Contract.h.

Public Destructor

~Contract()

virtual simaai::neat::Contract::~Contract ()
virtual default

Virtual destructor — required for the abstract base.

Definition at line 84 of file Contract.h.

Public Member Functions

description()

virtual std::string simaai::neat::Contract::description ()
inline virtual

Human-readable description (optional).

Definition at line 90 of file Contract.h.

90 virtual std::string description() const {
91 return "";
92 }

id()

virtual std::string simaai::neat::Contract::id ()

Stable identifier (used for filtering, report grouping).

Definition at line 87 of file Contract.h.

validate()

virtual void simaai::neat::Contract::validate (const NodeGroup & nodes, const ValidationContext & ctx, ValidationReport & report)

Validate the node group and append issues to report.

Parameters
nodes

The NodeGroup being validated.

ctx

Validation context (mode, policy, strictness).

report

Output report; the contract appends issues to it.

Definition at line 101 of file Contract.h.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.