|
Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
|
Implements the Experiment Document2D Json component. More...
#include <experimentdocument2d.h>
Static Public Member Functions | |
| static QString | formatId () |
| Performs format id. | |
| static QJsonObject | toJson (const ExperimentDocument2D &document) |
| Performs to json. | |
| static bool | fromJson (const QJsonObject &json, ExperimentDocument2D &document, QString &errorMessage) |
| Performs from json. | |
| static bool | saveFile (const QString &fileName, const ExperimentDocument2D &document, QString &errorMessage) |
| Saves file. | |
| static bool | loadFile (const QString &fileName, ExperimentDocument2D &document, QString &errorMessage) |
| Loads file. | |
Implements the Experiment Document2D Json component.
The class provides one focused service within the QPE architecture and is documented here independently of the experiment-level Help.
Definition at line 151 of file experimentdocument2d.h.
|
static |
Performs format id.
Definition at line 1892 of file experimentdocument2d.cpp.
Referenced by fromJson(), and toJson().
|
static |
Performs from json.
| json | The json value used by the operation. |
| document | The document value used by the operation. |
| errorMessage | The error message value used by the operation. |
Definition at line 1990 of file experimentdocument2d.cpp.
References qpe::ExperimentDocument2D::controls, qpe::ExperimentDocument2D::CurrentSchemaVersion, formatId(), qpe::ExperimentDocument2D::name, qpe::ExperimentDocument2D::schemaVersion, and qpe::ExperimentDocument2D::sourcePreset.
Referenced by loadFile(), and qpe::tests::runExperimentDocument2DTests().
|
static |
Loads file.
| fileName | Filesystem name/path. |
| document | The document value used by the operation. |
| errorMessage | The error message value used by the operation. |
Definition at line 2164 of file experimentdocument2d.cpp.
References fromJson().
Referenced by MainWindow::loadExperimentJson(), and qpe::tests::runExperimentDocument2DTests().
|
static |
Saves file.
| fileName | Filesystem name/path. |
| document | The document value used by the operation. |
| errorMessage | The error message value used by the operation. |
Definition at line 2133 of file experimentdocument2d.cpp.
References toJson().
Referenced by qpe::tests::runExperimentDocument2DTests(), and MainWindow::saveExperimentJson().
|
static |
Performs to json.
| document | The document value used by the operation. |
Definition at line 1897 of file experimentdocument2d.cpp.
References qpe::ExperimentDocument2D::controls, formatId(), qpe::ExperimentDocument2D::name, qpe::ExperimentDocument2D::schemaVersion, and qpe::ExperimentDocument2D::sourcePreset.
Referenced by qpe::tests::runExperimentDocument2DTests(), and saveFile().