|
VR-Engage
2.3
|
Serializes and deserializes assignment layouts to versioned JSON files. This class is UI-free and returns error and warning strings for the caller to present.
#include <vreAssignmentPersistence.h>
Static Public Member Functions | |
| static bool | saveToFile (const QString &filePath, const DtPersistedAssignmentFile &fileData, QString &errorText) |
| static bool | loadFromFile (const QString &filePath, DtPersistedAssignmentFile &fileData, QString &errorText, QStringList &warningTexts) |
| static DtPersistedAssignmentFile | buildFileData (const DtVreAssignmentTracker &tracker) |
|
static |
Saves the assignment file data to a JSON file.
| filePath | The target file path. |
| fileData | The assignment data to serialize. |
| errorText | Receives an error description on failure. |
|
static |
Loads assignment data from a JSON file.
| filePath | The source file path. |
| fileData | Receives the parsed assignment data on success. |
| errorText | Receives an error description on failure. |
| warningTexts | Receives non-fatal warnings. |
|
static |
Builds a persistence snapshot from the tracker's effective assignment state.
Exports the merged confirmed plus pending view so the saved file represents the operator's intended layout.
| tracker | The assignment tracker to export from. |