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
58//=============================================================================================================
65{
67 QString path;
68 QString sha256;
69 QString format;
70 qint64 sizeBytes = 0;
71 bool embedded = false;
72 QByteArray data;
73 QJsonObject extras;
74
75 //=========================================================================================================
81 QJsonObject toJson() const;
82
83 //=========================================================================================================
91 static MnaFileRef fromJson(const QJsonObject& json);
92
93 //=========================================================================================================
99 QCborMap toCbor() const;
100
101 //=========================================================================================================
109 static MnaFileRef fromCbor(const QCborMap& cbor);
110};
111
112} // namespace MNALIB
113
114#endif // MNA_FILE_REF_H
Enums and string-conversion helpers for the MNA container vocabulary (file roles, data kinds,...
Export/import macros, build-info accessors, and MNALIB namespace anchor for the MNE Analysis Containe...
#define MNASHARED_EXPORT
Definition mna_global.h:47
MNE Analysis Container Format (mna/mnx).
MnaFileRole
Definition mna_types.h:58
static MnaFileRef fromJson(const QJsonObject &json)
QCborMap toCbor() const
QJsonObject toJson() const
static MnaFileRef fromCbor(const QCborMap &cbor)
QJsonObject extras