v2.0.0
Loading...
Searching...
No Matches
mna_session.h
Go to the documentation of this file.
1//=============================================================================================================
26
27#ifndef MNA_SESSION_H
28#define MNA_SESSION_H
29
30//=============================================================================================================
31// INCLUDES
32//=============================================================================================================
33
34#include "mna_global.h"
35#include "mna_recording.h"
36
37//=============================================================================================================
38// QT INCLUDES
39//=============================================================================================================
40
41#include <QString>
42#include <QList>
43#include <QJsonObject>
44#include <QCborMap>
45#include <QSet>
46
47//=============================================================================================================
48// DEFINE NAMESPACE MNALIB
49//=============================================================================================================
50
51namespace MNALIB
52{
53
54//=============================================================================================================
61{
62 QString id;
63 QList<MnaRecording> recordings;
64 QJsonObject extras;
65
66 //=========================================================================================================
72 QJsonObject toJson() const;
73
74 //=========================================================================================================
82 static MnaSession fromJson(const QJsonObject& json);
83
84 //=========================================================================================================
90 QCborMap toCbor() const;
91
92 //=========================================================================================================
100 static MnaSession fromCbor(const QCborMap& cbor);
101};
102
103} // namespace MNALIB
104
105#endif // MNA_SESSION_H
Export/import macros, build-info accessors, and MNALIB namespace anchor for the MNE Analysis Containe...
#define MNASHARED_EXPORT
Definition mna_global.h:47
Grouping of every file that belongs to one continuous measurement run inside an MNA project.
MNE Analysis Container Format (mna/mnx).
static MnaSession fromCbor(const QCborMap &cbor)
QJsonObject extras
Definition mna_session.h:64
QJsonObject toJson() const
QCborMap toCbor() const
static MnaSession fromJson(const QJsonObject &json)
QList< MnaRecording > recordings
Definition mna_session.h:63