v2.0.0
Loading...
Searching...
No Matches
MNALIB::MnaIO Class Reference

#include <mna_io.h>

Static Public Member Functions

static MnaProject read (const QString &path)
static bool write (const MnaProject &project, const QString &path)

Detailed Description

Read/write MNA project files (.mna = JSON, .mnx = CBOR with "MNX1" magic header).

Definition at line 61 of file mna_io.h.

Member Function Documentation

◆ read()

MnaProject MnaIO::read ( const QString & path)
static

Read an MNA project from file. Dispatches by extension.

Parameters
[in]pathPath to the .mna or .mnx file.
Returns
The deserialized MnaProject.

Definition at line 69 of file mna_io.cpp.

◆ write()

bool MnaIO::write ( const MnaProject & project,
const QString & path )
static

Write an MNA project to file. Dispatches by extension.

Parameters
[in]projectThe project to write.
[in]pathPath to the .mna or .mnx file.
Returns
True if successful.

Definition at line 86 of file mna_io.cpp.


The documentation for this class was generated from the following files: