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

#include <mna_subject.h>

Public Member Functions

QJsonObject toJson () const
QCborMap toCbor () const

Static Public Member Functions

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

Public Attributes

QString id
QString freeSurferDir
QList< MnaSessionsessions
QJsonObject extras

Detailed Description

Represents a subject (participant) in the project.

Definition at line 65 of file mna_subject.h.

Member Function Documentation

◆ fromCbor()

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

Deserialize from QCborMap.

Definition at line 113 of file mna_subject.cpp.

◆ fromJson()

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

Deserialize from QJsonObject.

Definition at line 71 of file mna_subject.cpp.

◆ toCbor()

QCborMap MnaSubject::toCbor ( ) const

Serialize to QCborMap.

Definition at line 96 of file mna_subject.cpp.

◆ toJson()

QJsonObject MnaSubject::toJson ( ) const

Serialize to QJsonObject.

Definition at line 54 of file mna_subject.cpp.

Member Data Documentation

◆ extras

QJsonObject MNALIB::MnaSubject::extras

Unknown keys preserved for lossless round-trip.

Definition at line 70 of file mna_subject.h.

◆ freeSurferDir

QString MNALIB::MnaSubject::freeSurferDir

Relative path to FreeSurfer SUBJECTS_DIR.

Definition at line 68 of file mna_subject.h.

◆ id

QString MNALIB::MnaSubject::id

Subject identifier.

Definition at line 67 of file mna_subject.h.

◆ sessions

QList<MnaSession> MNALIB::MnaSubject::sessions

Sessions for this subject.

Definition at line 69 of file mna_subject.h.


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