MnaIO
Namespace: MNALIB · Library: MNA Library
#include <mna/mna_io.h>
class MNALIB::MnaIO
Read/write MNA project files (.mna = JSON, .mnx = CBOR with "MNX1" magic header).
Static Methods
read(path)
Read an MNA project from file.
Dispatches by extension.
Parameters:
- path : const QString & Path to the .mna or .mnx file.
Returns:
- MnaProject — The deserialized
MnaProject.
write(project, path)
Write an MNA project to file.
Dispatches by extension.
Parameters:
-
project : const MnaProject & The project to write.
-
path : const QString & Path to the .mna or .mnx file.
Returns:
- bool — True if successful.
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>