MnaProject
Namespace: MNALIB · Library: MNA Library
#include <mna/mna_project.h>
class MNALIB::MnaProject
Top-level MNA project container.
Holds subjects, pipeline steps, and project metadata.
Public Methods
MnaProject()
Default constructor.
toJson()
Serialize to QJsonObject.
toCbor()
Serialize to QCborMap.
Static Methods
fromJson(json)
Deserialize from QJsonObject.
fromCbor(cbor)
Deserialize from QCborMap.
read(path)
Read an MNA project from file.
Delegates to MnaIO.
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.
Delegates to MnaIO.
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>