v2.0.0
Loading...
Searching...
No Matches
mna_port.cpp File Reference

JSON and CBOR codecs for MnaPort including data-kind enum mapping, optional stream binding fields and cached-result references. More...

#include "mna_port.h"
Include dependency graph for mna_port.cpp:

Go to the source code of this file.

Detailed Description

JSON and CBOR codecs for MnaPort including data-kind enum mapping, optional stream binding fields and cached-result references.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.2.0
Date
April 2026

The implementation converts MnaDataKind and MnaPortDir through the canonical string helpers from mna_types.h so the on-disk vocabulary stays single-source. Stream-related fields (streamProtocol, streamEndpoint, streamBufferMs) and cache-related fields (cachedResultPath, cachedResultHash) are only written when non-default so simple file-based projects stay compact, and any unknown attribute is shovelled into extras to keep the round trip lossless across MNALIB versions.

Definition in file mna_port.cpp.