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

JSON and CBOR codecs for MnaSubject — subject id, FreeSurfer $SUBJECTS_DIR link, ordered session list and forward-compatible extras. More...

#include "mna_subject.h"
#include <QJsonArray>
#include <QCborArray>
Include dependency graph for mna_subject.cpp:

Go to the source code of this file.

Detailed Description

JSON and CBOR codecs for MnaSubject — subject id, FreeSurfer $SUBJECTS_DIR link, ordered session list and forward-compatible extras.

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 walks the MnaSession list with the matching session codec and emits freeSurferDir as a relative POSIX path so projects remain portable between hosts. Any subject-level fields not recognised by this build — demographics, consent flags, clinical metadata — are routed through extras to guarantee round-trip fidelity with newer MNALIB versions.

Definition in file mna_subject.cpp.