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
52//=============================================================================================================
59{
60public:
61 //=========================================================================================================
69 static MnaProject read(const QString& path);
70
71 //=========================================================================================================
80 static bool write(const MnaProject& project, const QString& path);
81
82private:
83 static MnaProject readJson(const QString& path);
84 static bool writeJson(const MnaProject& project, const QString& path);
85 static MnaProject readCbor(const QString& path);
86 static bool writeCbor(const MnaProject& project, const QString& path);
87};
88
89} // namespace MNALIB
90
91#endif // MNA_IO_H
Export/import macros, build-info accessors, and MNALIB namespace anchor for the MNE Analysis Containe...
#define MNASHARED_EXPORT
Definition mna_global.h:47
Top-level MNA container binding subjects, processing pipeline, schema version and project metadata.
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