v2.0.0
Loading...
Searching...
No Matches
mna_io.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef MNA_IO_H
36#define MNA_IO_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "mna_global.h"
43#include "mna_project.h"
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QString>
50
51//=============================================================================================================
52// DEFINE NAMESPACE MNALIB
53//=============================================================================================================
54
55namespace MNALIB{
56
57//=============================================================================================================
62{
63public:
64 //=========================================================================================================
72 static MnaProject read(const QString& path);
73
74 //=========================================================================================================
83 static bool write(const MnaProject& project, const QString& path);
84
85private:
86 static MnaProject readJson(const QString& path);
87 static bool writeJson(const MnaProject& project, const QString& path);
88 static MnaProject readCbor(const QString& path);
89 static bool writeCbor(const MnaProject& project, const QString& path);
90};
91
92} // namespace MNALIB
93
94#endif // MNA_IO_H
MnaProject class declaration.
mna library export/import macros.
#define MNASHARED_EXPORT
Definition mna_global.h:55
MNE Analysis Container Format (mna/mnx).
static bool write(const MnaProject &project, const QString &path)
Definition mna_io.cpp:86
static MnaProject read(const QString &path)
Definition mna_io.cpp:69