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
initialqualityeditref.h
Go to the documentation of this file.
1
17#ifndef INITIALQUALITYEDITREF_H
18#define INITIALQUALITYEDITREF_H
19
20#include <QMetaType>
21#include <QString>
22
23#include <openswmm/engine/openswmm_callbacks.h> // SWMM_Engine typedef
24
27{
28 SWMM_Engine engine = nullptr;
29 int isLink = 0;
30 QString elementName;
31 QString summary;
32
33 bool operator==(const InitialQualityEditRef &other) const noexcept
34 {
35 return engine == other.engine && isLink == other.isLink
36 && elementName == other.elementName
37 && summary == other.summary;
38 }
39};
40
41Q_DECLARE_METATYPE(InitialQualityEditRef)
42
43
45QString initialQualitySummaryFor(SWMM_Engine engine, int isLink,
46 const QString &elementName);
47
51
52#endif // INITIALQUALITYEDITREF_H
QString initialQualitySummaryFor(SWMM_Engine engine, int isLink, const QString &elementName)
Definition initialqualityeditref.cpp:16
void registerInitialQualityEditRefConverter()
Definition initialqualityeditref.cpp:45
void * SWMM_Engine
Definition objectdefaultsapplier.h:19
Definition initialqualityeditref.h:27
SWMM_Engine engine
Engine handle (borrow, not owned)
Definition initialqualityeditref.h:28
QString elementName
Owning element id (case-preserved)
Definition initialqualityeditref.h:30
bool operator==(const InitialQualityEditRef &other) const noexcept
Definition initialqualityeditref.h:33
int isLink
0 = node scope, 1 = link scope
Definition initialqualityeditref.h:29
QString summary
Short text shown in the cell.
Definition initialqualityeditref.h:31