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
culvertcodes.h File Reference
#include <QString>
#include <vector>
Include dependency graph for culvertcodes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CulvertCodeInfo
 

Functions

const std::vector< CulvertCodeInfo > & culvertCodes ()
 
QString culvertCodeLabel (int code)
 

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

docs/ATTRIBUTE_EDITOR_WIRING_PLAN_2026-06-04.md Phase 0 — single source of truth for the FHWA HDS-5 culvert inlet-geometry codes (1..57; 0 = no culvert / no inlet control). Transcribed from the legacy selector tree in SWMM-GUI/Epaswmm5/Dculvert.dfm so the Property Browser combobox, the Attribute Table enum column, and any future UI all show the same labels.

Labels are deliberately ASCII-only: a previous revision routed UTF-8 literals through QString::fromLatin1, baking mojibake into the culvert combobox (see plan §2, encoding hygiene rule).

Function Documentation

◆ culvertCodeLabel()

QString culvertCodeLabel ( int  code)

Short display label for a code, e.g. "3) Circular Concrete: Groove end projecting". Returns "(none)" for code <= 0 and "Code N" for an unknown positive code.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ culvertCodes()

const std::vector< CulvertCodeInfo > & culvertCodes ( )

All 57 codes in ascending order (code 0 "(none)" is NOT included — callers prepend it so they control its wording).

Here is the caller graph for this function: