![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Implementation of the dynamic species attribute helpers (Y2a). More...
Namespaces | |
| namespace | OpenSWMMVis |
| namespace | OpenSWMMVis::Species |
Functions | |
| QString | OpenSWMMVis::Species::speciesAttributeName (const QString &species) |
"TSS" → "qual:TSS" — the token persisted in .oswp. | |
| bool | OpenSWMMVis::Species::isSpeciesAttribute (const QString &attr) |
True if attr is a species attribute token. | |
| QString | OpenSWMMVis::Species::speciesFromAttribute (const QString &attr) |
"qual:TSS" → "TSS"; empty for a non-species attribute. | |
| bool | OpenSWMMVis::Species::isReservedSpecies (const QString &species) |
| True for the reserved species (age / temperature). | |
| QString | OpenSWMMVis::Species::speciesDisplayLabel (const QString &species) |
| Picker label for a species: friendly text for the reserved pair, the bare name for an ordinary pollutant. | |
| QString | OpenSWMMVis::Species::speciesUnitLabel (const QString &species, const QString &concentrationUnit) |
Unit string for a species. The reserved pair carry fixed units the .out enum cannot express (hours / °C — engine A2b); an ordinary pollutant uses concentrationUnit as reported. | |
| int | OpenSWMMVis::Species::speciesOutCode (const QString &attr, const QStringList &species, int pollutBase) |
Resolve attr to an engine output variable code. | |
| QStringList | OpenSWMMVis::Species::inflowConstituentNames (const QStringList &pollutants) |
| Y4 (amendment D-Y4): constituent choices for an [INFLOWS] editor — FLOW, every pollutant, then the reserved AGE species (§3.3's exclusion lifted for age ONLY; temperature keeps the dedicated-page treatment until heat's round and must NOT appear). Engine NAMES — combo labels come from inflowConstituentLabel(). | |
| QString | OpenSWMMVis::Species::inflowConstituentLabel (const QString &name) |
| Combo label for an inflow constituent: the species display label for the reserved pair ("Water age (hours)" — the row's value column means HOURS, never mg/L), the bare name otherwise. | |
| bool | OpenSWMMVis::Species::inflowMassAllowed (const QString &name) |
| MASS is a pollutant-only inflow type: meaningless for FLOW and for the age species (the engine takes a MASS-typed age row as hours WITH a warning — the editor must not author what warns). | |
Implementation of the dynamic species attribute helpers (Y2a).