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< MnaOpSchemaPort > | inputPorts |
| Expected input ports. | |
| QList< MnaOpSchemaPort > | outputPorts |
| Expected output ports. | |
| QList< MnaOpSchemaAttr > | attributes |
| Expected attributes. | |
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.
| bool MnaOpSchema::validate | ( | const MnaNode & | node, |
| QStringList * | errors = nullptr ) const |
Validate that a node conforms to this schema.
| [in] | node | Node to validate. |
| [out] | errors | Optional list of validation error messages. |
Definition at line 50 of file mna_op_schema.cpp.
| QList<MnaOpSchemaAttr> MNALIB::MnaOpSchema::attributes |
Expected attributes.
Definition at line 113 of file mna_op_schema.h.
| QString MNALIB::MnaOpSchema::binding |
Binding type: "internal", "cli", or "script".
Definition at line 104 of file mna_op_schema.h.
| QString MNALIB::MnaOpSchema::category |
Category: "io", "preprocessing", "source_estimation", etc.
Definition at line 105 of file mna_op_schema.h.
| QString MNALIB::MnaOpSchema::cliTemplate |
For CLI ops: command template with {{placeholder}} tokens.
Definition at line 109 of file mna_op_schema.h.
| QString MNALIB::MnaOpSchema::description |
What the operation does.
Definition at line 106 of file mna_op_schema.h.
| QString MNALIB::MnaOpSchema::executable |
For CLI ops: executable name (e.g. "recon-all").
Definition at line 108 of file mna_op_schema.h.
| QList<MnaOpSchemaPort> MNALIB::MnaOpSchema::inputPorts |
Expected input ports.
Definition at line 111 of file mna_op_schema.h.
| QString MNALIB::MnaOpSchema::library |
Which library provides the implementation.
Definition at line 107 of file mna_op_schema.h.
| QString MNALIB::MnaOpSchema::opType |
Operation type string.
Definition at line 102 of file mna_op_schema.h.
| QList<MnaOpSchemaPort> MNALIB::MnaOpSchema::outputPorts |
Expected output ports.
Definition at line 112 of file mna_op_schema.h.
| QString MNALIB::MnaOpSchema::version |
Version of the operation (e.g. "2.2.0").
Definition at line 103 of file mna_op_schema.h.