v2.0.0
Loading...
Searching...
No Matches
MNALIB::MnaOpSchema Class Reference

Operation schema for graph validation. More...

#include <mna_op_schema.h>

Public Member Functions

bool validate (const MnaNode &node, QStringList *errors=nullptr) const

Public Attributes

QString opType
 Operation type string.
QString version
 Version of the operation (e.g. "2.2.0").
QString binding
 Binding type: "internal", "cli", or "script".
QString category
 Category: "io", "preprocessing", "source_estimation", etc.
QString description
 What the operation does.
QString library
 Which library provides the implementation.
QString executable
 For CLI ops: executable name (e.g. "recon-all").
QString cliTemplate
 For CLI ops: command template with {{placeholder}} tokens.
QList< MnaOpSchemaPortinputPorts
 Expected input ports.
QList< MnaOpSchemaPortoutputPorts
 Expected output ports.
QList< MnaOpSchemaAttrattributes
 Expected attributes.

Detailed Description

Operation schema for graph validation.

Contract declaring an operation's expected inputs, outputs, and attributes.

Definition at line 99 of file mna_op_schema.h.

Member Function Documentation

◆ validate()

bool MnaOpSchema::validate ( const MnaNode & node,
QStringList * errors = nullptr ) const

Validate that a node conforms to this schema.

Parameters
[in]nodeNode to validate.
[out]errorsOptional list of validation error messages.
Returns
True if the node conforms to the schema.

Definition at line 50 of file mna_op_schema.cpp.

Member Data Documentation

◆ attributes

QList<MnaOpSchemaAttr> MNALIB::MnaOpSchema::attributes

Expected attributes.

Definition at line 113 of file mna_op_schema.h.

◆ binding

QString MNALIB::MnaOpSchema::binding

Binding type: "internal", "cli", or "script".

Definition at line 104 of file mna_op_schema.h.

◆ category

QString MNALIB::MnaOpSchema::category

Category: "io", "preprocessing", "source_estimation", etc.

Definition at line 105 of file mna_op_schema.h.

◆ cliTemplate

QString MNALIB::MnaOpSchema::cliTemplate

For CLI ops: command template with {{placeholder}} tokens.

Definition at line 109 of file mna_op_schema.h.

◆ description

QString MNALIB::MnaOpSchema::description

What the operation does.

Definition at line 106 of file mna_op_schema.h.

◆ executable

QString MNALIB::MnaOpSchema::executable

For CLI ops: executable name (e.g. "recon-all").

Definition at line 108 of file mna_op_schema.h.

◆ inputPorts

QList<MnaOpSchemaPort> MNALIB::MnaOpSchema::inputPorts

Expected input ports.

Definition at line 111 of file mna_op_schema.h.

◆ library

QString MNALIB::MnaOpSchema::library

Which library provides the implementation.

Definition at line 107 of file mna_op_schema.h.

◆ opType

QString MNALIB::MnaOpSchema::opType

Operation type string.

Definition at line 102 of file mna_op_schema.h.

◆ outputPorts

QList<MnaOpSchemaPort> MNALIB::MnaOpSchema::outputPorts

Expected output ports.

Definition at line 112 of file mna_op_schema.h.

◆ version

QString MNALIB::MnaOpSchema::version

Version of the operation (e.g. "2.2.0").

Definition at line 103 of file mna_op_schema.h.


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