v2.0.0
Loading...
Searching...
No Matches
mna_io.h
Go to the documentation of this file.
1//=============================================================================================================
28
29#ifndef MNA_IO_H
30#define MNA_IO_H
31
32//=============================================================================================================
33// INCLUDES
34//=============================================================================================================
35
36#include "mna_global.h"
37#include "mna_project.h"
38
39//=============================================================================================================
40// QT INCLUDES
41//=============================================================================================================
42
43#include <QString>
44
45//=============================================================================================================
46// DEFINE NAMESPACE MNALIB
47//=============================================================================================================
48
49namespace MNALIB{
50
51//=============================================================================================================
56{
57public:
58 //=========================================================================================================
66 static MnaProject read(const QString& path);
67
68 //=========================================================================================================
77 static bool write(const MnaProject& project, const QString& path);
78
79private:
80 static MnaProject readJson(const QString& path);
81 static bool writeJson(const MnaProject& project, const QString& path);
82 static MnaProject readCbor(const QString& path);
83 static bool writeCbor(const MnaProject& project, const QString& path);
84};
85
86} // namespace MNALIB
87
88#endif // MNA_IO_H
Top-level MNA container binding subjects, processing pipeline, schema version and project metadata.
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).
static bool write(const MnaProject &project, const QString &path)
Definition mna_io.cpp:75
static MnaProject read(const QString &path)
Definition mna_io.cpp:58