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
culvertcoderef.h
Go to the documentation of this file.
1
20#ifndef CULVERTCODEREF_H
21#define CULVERTCODEREF_H
22
23#include <QMetaType>
24#include <QString>
25
26#include <openswmm/engine/openswmm_callbacks.h> // SWMM_Engine typedef
27
28class SWMMModelLayer;
29
32{
33 SWMM_Engine engine = nullptr;
34 QString linkName;
35 int code = 0;
40
41 bool operator==(const CulvertCodeRef &other) const noexcept
42 {
43 return engine == other.engine && linkName == other.linkName
44 && code == other.code && layer == other.layer;
45 }
46};
47
48Q_DECLARE_METATYPE(CulvertCodeRef)
49
50
53
54#endif // CULVERTCODEREF_H
Renders the SWMM network elements (nodes, links, subcatchments, rain gages) for one OpenSWMMEngine mo...
Definition swmmmodellayer.h:133
void registerCulvertCodeRefConverter()
Definition culvertcoderef.cpp:12
void * SWMM_Engine
Definition objectdefaultsapplier.h:19
Definition culvertcoderef.h:32
SWMM_Engine engine
Engine handle (borrow, not owned)
Definition culvertcoderef.h:33
SWMMModelLayer * layer
Definition culvertcoderef.h:39
QString linkName
Owning conduit id.
Definition culvertcoderef.h:34
int code
HDS-5 code; 0 = none.
Definition culvertcoderef.h:35
bool operator==(const CulvertCodeRef &other) const noexcept
Definition culvertcoderef.h:41