29#ifndef OPENSWMM_RENDER_JOINSPEC_H
30#define OPENSWMM_RENDER_JOINSPEC_H
73 [[nodiscard]] QJsonObject
toJson()
const;
78 {
return !(*
this == other); }
Definition gisrasterlayer.h:40
One external-table join.
Definition joinspec.h:44
QString fieldPrefix
Prefix applied to joined field names on the host layer (e.g. "obs_" → joined "depth" becomes "obs_dep...
Definition joinspec.h:71
bool enabled
Master switch — when false, the join isn't applied at paint / Identify time (but stays defined for la...
Definition joinspec.h:48
QString sourcePath
Filesystem path to the source data. Relative paths are resolved against the project directory at runt...
Definition joinspec.h:52
QJsonObject toJson() const
Definition joinspec.cpp:16
QString sourceKeyField
Column name in the source that matches targetKeyField.
Definition joinspec.h:59
QStringList joinFields
Names of fields to import from the source. When empty, every non-key column is imported.
Definition joinspec.h:66
QString targetKeyField
Attribute name on the host layer to match.
Definition joinspec.h:62
static JoinSpec fromJson(const QJsonObject &j)
Definition joinspec.cpp:40
QString sourceLayerName
Source layer / sheet name (for multi-table sources like SQLite). Empty for single-table sources (CSV/...
Definition joinspec.h:56
bool operator!=(const JoinSpec &other) const
Definition joinspec.h:77
bool operator==(const JoinSpec &other) const
Definition joinspec.cpp:56