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
dataobjectref.h File Reference
#include <QMetaType>
#include <QString>
#include <openswmm/engine/openswmm_callbacks.h>
Include dependency graph for dataobjectref.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DataObjectRef
 

Functions

void registerDataObjectRefConverter ()
 

Detailed Description

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Slice DA.4.3 — Property-cell value carrying a reference to one named data object (curve / time series / pattern / unit hydrograph). The matching custom editor (DataObjectPickerEditor) renders a combobox filtered by kind plus a "…" button that launches an inline name prompt + SWMMModelLayer::createDataObject for TS / UH categories (gap categories surface the future-slice tooltip per Slice BM.0-Add-New, 2026-05-24).

The value type intentionally carries no setter callback — writes flow through the owning adapter's WRITE slot (e.g. setOutfallTidalCurveRef), which is what calls the engine. This keeps the MVC contract clean ([[feedback_mvc_synchronized_uis]]): the engine is the single source of truth; the ref is just a coordinate.

Function Documentation

◆ registerDataObjectRefConverter()

void registerDataObjectRefConverter ( )

Install the DataObjectRef → QString converter so a non-edit cell renders currentName (or "(unassigned)" when empty). Idempotent.

Here is the caller graph for this function: