SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
auxiliarystoragespec.h
Go to the documentation of this file.
1
32#ifndef OPENSWMM_RENDER_AUXILIARYSTORAGESPEC_H
33#define OPENSWMM_RENDER_AUXILIARYSTORAGESPEC_H
34
35#include <QJsonObject>
36#include <QString>
37
38namespace OpenSWMM::Render
39{
40
46{
49 bool enabled = false;
50
55 QString dbPath;
56
57 [[nodiscard]] QJsonObject toJson() const;
58 static AuxiliaryStorageSpec fromJson(const QJsonObject &j);
59
60 [[nodiscard]] bool operator==(const AuxiliaryStorageSpec &other) const;
61 [[nodiscard]] bool operator!=(const AuxiliaryStorageSpec &other) const
62 { return !(*this == other); }
63};
64
65} // namespace OpenSWMM::Render
66
67#endif // OPENSWMM_RENDER_AUXILIARYSTORAGESPEC_H
Definition gisrasterlayer.h:40
Per-layer auxiliary-storage configuration.
Definition auxiliarystoragespec.h:46
QString dbPath
Filesystem path to the sidecar SQLite DB. Relative paths are resolved against the project directory a...
Definition auxiliarystoragespec.h:55
QJsonObject toJson() const
Definition auxiliarystoragespec.cpp:14
bool enabled
Master switch. When false, the DB is not consulted at paint time (overrides are inert but preserved).
Definition auxiliarystoragespec.h:49
bool operator!=(const AuxiliaryStorageSpec &other) const
Definition auxiliarystoragespec.h:61
static AuxiliaryStorageSpec fromJson(const QJsonObject &j)
Definition auxiliarystoragespec.cpp:24
bool operator==(const AuxiliaryStorageSpec &other) const
Definition auxiliarystoragespec.cpp:32