v2.0.0
Loading...
Searching...
No Matches
MNALIB::MnaNode Struct Reference

Single executable step in an MNA pipeline graph, with attributes, typed ports, exec mode, verification and provenance. More...

#include <mna_node.h>

Public Member Functions

QJsonObject toJson () const
QCborMap toCbor () const

Static Public Member Functions

static MnaNode fromJson (const QJsonObject &json)
static MnaNode fromCbor (const QCborMap &cbor)

Public Attributes

QString id
 Unique node identifier.
QString opType
 Operation type (looked up in MnaOpRegistry).
QVariantMap attributes
 Operation parameters.
QList< MnaPort > inputs
 Input ports.
QList< MnaPort > outputs
 Output ports.
MnaNodeExecMode execMode = MnaNodeExecMode::Batch
 Execution mode.
QString ipcCommand
 External executable command.
QStringList ipcArgs
 Command-line arguments (supports {{placeholder}} tokens).
QString ipcWorkDir
 Working directory for external process.
QString ipcTransport
 "stdio", "tcp", "shm", "file"
MnaScript script
 Inline source code, interpreter, language.
MnaVerification verification
 Explanation, checks, results, and provenance snapshot.
QString toolVersion
 Version of tool that last executed this node.
QDateTime executedAt
 Timestamp of last execution.
bool dirty = true
 Whether node needs re-execution.
QJsonObject extras
 Unknown keys preserved for lossless round-trip.

Detailed Description

Single executable step in an MNA pipeline graph, with attributes, typed ports, exec mode, verification and provenance.

One operation in the computational graph.

Definition at line 76 of file mna_node.h.

Member Function Documentation

◆ fromCbor()

MnaNode MnaNode::fromCbor ( const QCborMap & cbor)
static

Definition at line 242 of file mna_node.cpp.

◆ fromJson()

MnaNode MnaNode::fromJson ( const QJsonObject & json)
static

Definition at line 131 of file mna_node.cpp.

◆ toCbor()

QCborMap MnaNode::toCbor ( ) const

Definition at line 193 of file mna_node.cpp.

◆ toJson()

QJsonObject MnaNode::toJson ( ) const

Definition at line 76 of file mna_node.cpp.

Member Data Documentation

◆ attributes

QVariantMap MNALIB::MnaNode::attributes

Operation parameters.

Definition at line 80 of file mna_node.h.

◆ dirty

bool MNALIB::MnaNode::dirty = true

Whether node needs re-execution.

Definition at line 102 of file mna_node.h.

◆ execMode

MnaNodeExecMode MNALIB::MnaNode::execMode = MnaNodeExecMode::Batch

Execution mode.

Definition at line 85 of file mna_node.h.

◆ executedAt

QDateTime MNALIB::MnaNode::executedAt

Timestamp of last execution.

Definition at line 101 of file mna_node.h.

◆ extras

QJsonObject MNALIB::MnaNode::extras

Unknown keys preserved for lossless round-trip.

Definition at line 103 of file mna_node.h.

◆ id

QString MNALIB::MnaNode::id

Unique node identifier.

Definition at line 78 of file mna_node.h.

◆ inputs

QList<MnaPort> MNALIB::MnaNode::inputs

Input ports.

Definition at line 82 of file mna_node.h.

◆ ipcArgs

QStringList MNALIB::MnaNode::ipcArgs

Command-line arguments (supports {{placeholder}} tokens).

Definition at line 89 of file mna_node.h.

◆ ipcCommand

QString MNALIB::MnaNode::ipcCommand

External executable command.

Definition at line 88 of file mna_node.h.

◆ ipcTransport

QString MNALIB::MnaNode::ipcTransport

"stdio", "tcp", "shm", "file"

Definition at line 91 of file mna_node.h.

◆ ipcWorkDir

QString MNALIB::MnaNode::ipcWorkDir

Working directory for external process.

Definition at line 90 of file mna_node.h.

◆ opType

QString MNALIB::MnaNode::opType

Operation type (looked up in MnaOpRegistry).

Definition at line 79 of file mna_node.h.

◆ outputs

QList<MnaPort> MNALIB::MnaNode::outputs

Output ports.

Definition at line 83 of file mna_node.h.

◆ script

MnaScript MNALIB::MnaNode::script

Inline source code, interpreter, language.

Definition at line 94 of file mna_node.h.

◆ toolVersion

QString MNALIB::MnaNode::toolVersion

Version of tool that last executed this node.

Definition at line 100 of file mna_node.h.

◆ verification

MnaVerification MNALIB::MnaNode::verification

Explanation, checks, results, and provenance snapshot.

Definition at line 97 of file mna_node.h.


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