v2.0.0
Loading...
Searching...
No Matches
mna_file_ref.h
Go to the documentation of this file.
1//=============================================================================================================
30
31#ifndef MNA_FILE_REF_H
32#define MNA_FILE_REF_H
33
34//=============================================================================================================
35// INCLUDES
36//=============================================================================================================
37
38#include "mna_global.h"
39#include "mna_types.h"
40
41//=============================================================================================================
42// QT INCLUDES
43//=============================================================================================================
44
45#include <QString>
46#include <QByteArray>
47#include <QJsonObject>
48#include <QCborMap>
49#include <QSet>
50
51//=============================================================================================================
52// DEFINE NAMESPACE MNALIB
53//=============================================================================================================
54
55namespace MNALIB{
56
57//=============================================================================================================
62{
64 QString path;
65 QString sha256;
66 QString format;
67 qint64 sizeBytes = 0;
68 bool embedded = false;
69 QByteArray data;
70 QJsonObject extras;
71
72 //=========================================================================================================
76 QJsonObject toJson() const;
77
78 //=========================================================================================================
82 static MnaFileRef fromJson(const QJsonObject& json);
83
84 //=========================================================================================================
88 QCborMap toCbor() const;
89
90 //=========================================================================================================
94 static MnaFileRef fromCbor(const QCborMap& cbor);
95};
96
97} // namespace MNALIB
98
99#endif // MNA_FILE_REF_H
Export/import macros, build-info accessors, and MNALIB namespace anchor for the MNE Analysis Containe...
#define MNASHARED_EXPORT
Definition mna_global.h:47
Enums and string-conversion helpers for the MNA container vocabulary (file roles, data kinds,...
MNE Analysis Container Format (mna/mnx).
MnaFileRole
Definition mna_types.h:56
static MnaFileRef fromJson(const QJsonObject &json)
QCborMap toCbor() const
QJsonObject toJson() const
static MnaFileRef fromCbor(const QCborMap &cbor)
QJsonObject extras