![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <QDir>#include <QFileInfo>#include <QJsonObject>#include <QString>#include <QVector>Go to the source code of this file.
Classes | |
| class | ProjectSerializer |
.oswp sidecar serializer. Captures the GUI-only state that can't round-trip through SWMM's INP format: layer CRS, category order, hidden objects, canvas CRS + extent, basemaps, and (in v4+) the project's instance list.
Schema history: v0 — pre-Slice-X stub ({ layers: [{ path }] }). No-op apply. v1 — Slice X first cut. Flat root: inpPath + layer + canvas. v2 — reserved (relative-path migration; never shipped). v3 — basemaps[] added. v4 — sessions[] array (Slice AA-3.2): inpPath / engineVersion / layer move into sessions[N]; root keeps canvas + basemaps + (future) preferences. All path fields stored relative to the .oswp directory.
Forward-compat: unknown root keys are skipped silently. Apply accepts every prior schema and migrates in-memory.