v2.0.0
Loading...
Searching...
No Matches
mna_session.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef MNA_SESSION_H
36#define MNA_SESSION_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "mna_global.h"
43#include "mna_recording.h"
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QString>
50#include <QList>
51#include <QJsonObject>
52#include <QCborMap>
53#include <QSet>
54
55//=============================================================================================================
56// DEFINE NAMESPACE MNALIB
57//=============================================================================================================
58
59namespace MNALIB{
60
61//=============================================================================================================
66{
67 QString id;
68 QList<MnaRecording> recordings;
69 QJsonObject extras;
70
71 //=========================================================================================================
75 QJsonObject toJson() const;
76
77 //=========================================================================================================
81 static MnaSession fromJson(const QJsonObject& json);
82
83 //=========================================================================================================
87 QCborMap toCbor() const;
88
89 //=========================================================================================================
93 static MnaSession fromCbor(const QCborMap& cbor);
94};
95
96} // namespace MNALIB
97
98#endif // MNA_SESSION_H
MnaRecording class declaration.
mna library export/import macros.
#define MNASHARED_EXPORT
Definition mna_global.h:55
MNE Analysis Container Format (mna/mnx).
static MnaSession fromCbor(const QCborMap &cbor)
QJsonObject extras
Definition mna_session.h:69
QJsonObject toJson() const
QCborMap toCbor() const
static MnaSession fromJson(const QJsonObject &json)
QList< MnaRecording > recordings
Definition mna_session.h:68