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//=============================================================================================================
58{
59 QString id;
60 QList<MnaRecording> recordings;
61 QJsonObject extras;
62
63 //=========================================================================================================
67 QJsonObject toJson() const;
68
69 //=========================================================================================================
73 static MnaSession fromJson(const QJsonObject& json);
74
75 //=========================================================================================================
79 QCborMap toCbor() const;
80
81 //=========================================================================================================
85 static MnaSession fromCbor(const QCborMap& cbor);
86};
87
88} // namespace MNALIB
89
90#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:61
QJsonObject toJson() const
QCborMap toCbor() const
static MnaSession fromJson(const QJsonObject &json)
QList< MnaRecording > recordings
Definition mna_session.h:60