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

Graph port descriptor. More...

#include <mna_port.h>

Public Member Functions

QJsonObject toJson () const
QCborMap toCbor () const

Static Public Member Functions

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

Public Attributes

QString name
 Port name (unique within a node).
MnaDataKind dataKind = MnaDataKind::Custom
 Data kind flowing through this port.
MnaPortDir direction = MnaPortDir::Input
 Input or Output.
QString sourceNodeId
 Which node produces this input? (empty → graph-level input).
QString sourcePortName
 Which output port on that node?
QString streamProtocol
 "fiff-rt", "lsl", "ftbuffer", "shm", "" = internal signal/slot
QString streamEndpoint
 Protocol-specific address (e.g. "localhost:4218" for fiff-rt).
int streamBufferMs = 0
 Ring-buffer length in ms (0 = unbounded).
QString cachedResultPath
 Relative path to cached result.
QString cachedResultHash
 SHA-256 for invalidation.
QJsonObject extras
 Unknown keys preserved for lossless round-trip.

Detailed Description

Graph port descriptor.

Typed input/output slot on a graph node.

Definition at line 67 of file mna_port.h.

Member Function Documentation

◆ fromCbor()

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

Definition at line 202 of file mna_port.cpp.

◆ fromJson()

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

Definition at line 145 of file mna_port.cpp.

◆ toCbor()

QCborMap MnaPort::toCbor ( ) const

Definition at line 176 of file mna_port.cpp.

◆ toJson()

QJsonObject MnaPort::toJson ( ) const

Definition at line 117 of file mna_port.cpp.

Member Data Documentation

◆ cachedResultHash

QString MNALIB::MnaPort::cachedResultHash

SHA-256 for invalidation.

Definition at line 92 of file mna_port.h.

◆ cachedResultPath

QString MNALIB::MnaPort::cachedResultPath

Relative path to cached result.

Definition at line 91 of file mna_port.h.

◆ dataKind

MnaDataKind MNALIB::MnaPort::dataKind = MnaDataKind::Custom

Data kind flowing through this port.

Definition at line 70 of file mna_port.h.

◆ direction

MnaPortDir MNALIB::MnaPort::direction = MnaPortDir::Input

Input or Output.

Definition at line 71 of file mna_port.h.

◆ extras

QJsonObject MNALIB::MnaPort::extras

Unknown keys preserved for lossless round-trip.

Definition at line 93 of file mna_port.h.

◆ name

QString MNALIB::MnaPort::name

Port name (unique within a node).

Definition at line 69 of file mna_port.h.

◆ sourceNodeId

QString MNALIB::MnaPort::sourceNodeId

Which node produces this input? (empty → graph-level input).

Definition at line 74 of file mna_port.h.

◆ sourcePortName

QString MNALIB::MnaPort::sourcePortName

Which output port on that node?

Definition at line 75 of file mna_port.h.

◆ streamBufferMs

int MNALIB::MnaPort::streamBufferMs = 0

Ring-buffer length in ms (0 = unbounded).

Definition at line 88 of file mna_port.h.

◆ streamEndpoint

QString MNALIB::MnaPort::streamEndpoint

Protocol-specific address (e.g. "localhost:4218" for fiff-rt).

Definition at line 87 of file mna_port.h.

◆ streamProtocol

QString MNALIB::MnaPort::streamProtocol

"fiff-rt", "lsl", "ftbuffer", "shm", "" = internal signal/slot

Definition at line 86 of file mna_port.h.


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