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
meshbctype.h
Go to the documentation of this file.
1
24#ifndef OPENSWMMVIS_MESH_MESHBCTYPE_H
25#define OPENSWMMVIS_MESH_MESHBCTYPE_H
26
27#include <QObject>
28#include <QString>
29
30namespace mesh {
31
32class MeshBCTypes : public QObject
33{
34 Q_OBJECT
35public:
36 enum class Type : int {
37 Wall = 0,
38 NormalFlow = 1,
42 SpecifiedFlowTS = 5,
43 RatingCurve = 6,
44 };
45 Q_ENUM(Type)
46
47
48 static QString label(Type t);
49
51 static QString inpToken(Type t);
52
54 static Type fromInpToken(const QString &token, bool *ok = nullptr);
55
57 static int engineBCType(Type t);
58};
59
60} // namespace mesh
61
62#endif // OPENSWMMVIS_MESH_MESHBCTYPE_H
Definition meshbctype.h:33
static int engineBCType(Type t)
Engine-side BC enum (0..4) — collapses TS variants onto stage/flow.
Definition meshbctype.cpp:57
static QString inpToken(Type t)
INP TYPE token (uppercase, no spaces).
Definition meshbctype.cpp:27
Type
Definition meshbctype.h:36
@ SpecifiedFlowConst
Fixed discharge per metre of edge.
@ RatingCurve
Stage → flow lookup.
@ Wall
Zero-flux barrier (default)
@ SpecifiedStageConst
Fixed water-surface elevation.
@ SpecifiedFlowTS
Time-varying discharge per metre.
@ SpecifiedStageTS
Time-varying water-surface elevation.
@ NormalFlow
Manning outflow at bed slope.
static Type fromInpToken(const QString &token, bool *ok=nullptr)
Parse an INP TYPE token (uppercase or mixed case).
Definition meshbctype.cpp:41
const char * token
Definition diagramspec.cpp:20
DiagramType t
Definition diagramspec.cpp:20
const char * label
Human label for the filter entry.
Definition gdaldrivers.cpp:22
bool ok
Definition inpmeshwriter.cpp:575
Definition meshcommands.h:302