#include <mna_project.h>
Public Types | |
| typedef QSharedPointer< MnaProject > | SPtr |
| typedef QSharedPointer< const MnaProject > | ConstSPtr |
Public Member Functions | |
| MnaProject () | |
| QJsonObject | toJson () const |
| QCborMap | toCbor () const |
Static Public Member Functions | |
| static MnaProject | fromJson (const QJsonObject &json) |
| static MnaProject | fromCbor (const QCborMap &cbor) |
| static MnaProject | read (const QString &path) |
| static bool | write (const MnaProject &project, const QString &path) |
Public Attributes | |
| QString | name |
| QString | description |
| QString | mnaVersion |
| QDateTime | created |
| QDateTime | modified |
| QList< MnaSubject > | subjects |
| QList< MnaNode > | pipeline |
| QJsonObject | extras |
Static Public Attributes | |
| static constexpr const char * | CURRENT_SCHEMA_VERSION = "1.0" |
Top-level MNA project container. Holds subjects, pipeline steps, and project metadata.
Definition at line 67 of file mna_project.h.
| typedef QSharedPointer<const MnaProject> MNALIB::MnaProject::ConstSPtr |
Const shared pointer type.
Definition at line 71 of file mna_project.h.
| typedef QSharedPointer<MnaProject> MNALIB::MnaProject::SPtr |
Shared pointer type.
Definition at line 70 of file mna_project.h.
| MnaProject::MnaProject | ( | ) |
Default constructor.
Definition at line 55 of file mna_project.cpp.
|
static |
Deserialize from QCborMap.
Definition at line 154 of file mna_project.cpp.
|
static |
Deserialize from QJsonObject.
Definition at line 91 of file mna_project.cpp.
|
static |
Read an MNA project from file. Delegates to MnaIO.
| [in] | path | Path to the .mna or .mnx file. |
Definition at line 191 of file mna_project.cpp.
| QCborMap MnaProject::toCbor | ( | ) | const |
Serialize to QCborMap.
Definition at line 127 of file mna_project.cpp.
| QJsonObject MnaProject::toJson | ( | ) | const |
Serialize to QJsonObject.
Definition at line 64 of file mna_project.cpp.
|
static |
Write an MNA project to file. Delegates to MnaIO.
| [in] | project | The project to write. |
| [in] | path | Path to the .mna or .mnx file. |
Definition at line 198 of file mna_project.cpp.
| QDateTime MNALIB::MnaProject::created |
Creation timestamp.
Definition at line 86 of file mna_project.h.
|
staticconstexpr |
Current MNA schema version.
Definition at line 81 of file mna_project.h.
| QString MNALIB::MnaProject::description |
Project description.
Definition at line 84 of file mna_project.h.
| QJsonObject MNALIB::MnaProject::extras |
Unknown keys preserved for lossless round-trip.
Definition at line 90 of file mna_project.h.
| QString MNALIB::MnaProject::mnaVersion |
MNA schema version.
Definition at line 85 of file mna_project.h.
| QDateTime MNALIB::MnaProject::modified |
Last modification timestamp.
Definition at line 87 of file mna_project.h.
| QString MNALIB::MnaProject::name |
Project name.
Definition at line 83 of file mna_project.h.
| QList<MnaNode> MNALIB::MnaProject::pipeline |
Processing pipeline nodes.
Definition at line 89 of file mna_project.h.
| QList<MnaSubject> MNALIB::MnaProject::subjects |
Subjects in the project.
Definition at line 88 of file mna_project.h.