![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Dataset groups the 2D results writer can emit ([2D_OPTIONS] REPORT_2D_VARIABLES). One bit per group; the tokens are the names below. Unselected groups are NOT created in the file, so readers treat every time-varying dataset as optional. More...
Enumerations | |
| enum | Var : unsigned { DEPTH = 1u << 0 , VELOCITY = 1u << 1 , EDGE_FLUX = 1u << 2 , NODE_HEAD = 1u << 3 , SPECIES = 1u << 4 , RAINFALL = 1u << 5 , INFILTRATION = 1u << 6 , COUPLING = 1u << 7 , GRADIENTS = 1u << 8 , CONTINUITY = 1u << 9 , ENVELOPES = 1u << 10 , BUILDUP = 1u << 11 , GROUNDWATER , GW_DETAILED , HEAT = 1u << 14 , TURBULENCE = 1u << 15 , ALL_MASK = (1u << 16) - 1u , DEFAULT_MASK , MINIMAL_MASK = DEPTH | NODE_HEAD | ENVELOPES } |
Functions | |
| const std::vector< std::string > & | tokens () |
| Group tokens in bit order (index i ↔ bit 1u << i). | |
| bool | iequalsTok (const std::string &a, const char *b) |
| Compare one report token against a required literal ignoring byte case. | |
| std::vector< std::string > | splitList (const std::string &text) |
| Split on whitespace / commas. | |
| std::string | parseMask (const std::string &text, unsigned &mask) |
| Parse a token list or a preset (DEFAULT | MINIMAL | ALL | NONE) into a bitmask. DEPTH is always included — every reader keys the time axis on it. Returns an error string, empty on success. | |
| std::string | formatMask (unsigned mask) |
| Preset name when the mask equals one, else the space-separated token list. | |
| std::string | formatSpecies (const std::vector< std::string > &species) |
| "ALL" for an empty (unfiltered) list, else the space-separated names. | |
| std::vector< std::string > | parseSpecies (const std::string &text) |
| Species list from text; "ALL" (alone) → empty list. | |
| std::string | formatStep (double seconds) |
| Preserve whole and fractional 2D cadence values. | |
Dataset groups the 2D results writer can emit ([2D_OPTIONS] REPORT_2D_VARIABLES). One bit per group; the tokens are the names below. Unselected groups are NOT created in the file, so readers treat every time-varying dataset as optional.
| enum openswmm::twoD::report2d::Var : unsigned |
|
inline |
Preset name when the mask equals one, else the space-separated token list.
| [in] | mask | Dataset-group bitmask; unknown bits are discarded. |
|
inline |
"ALL" for an empty (unfiltered) list, else the space-separated names.
| [in] | species | Borrowed ordered species-name filter; empty means unfiltered. |
|
inline |
Preserve whole and fractional 2D cadence values.
| [in] | seconds | Interval in seconds; nonpositive and NaN become zero. |
|
inline |
Compare one report token against a required literal ignoring byte case.
| [in] | a | Borrowed token string. |
| [in] | b | Required NUL-terminated token/literal; NULL is unsupported. |
|
inline |
Parse a token list or a preset (DEFAULT | MINIMAL | ALL | NONE) into a bitmask. DEPTH is always included — every reader keys the time axis on it. Returns an error string, empty on success.
| [in] | text | Borrowed case-insensitive preset/token list; empty lists are errors. |
| [out] | mask | Reset to zero on entry, then ORed incrementally. A successful parse always includes DEPTH, including the NONE spelling. |
|
inline |
Species list from text; "ALL" (alone) → empty list.
| [in] | text | Borrowed list split by splitList(). A sole case-insensitive ALL removes filtering. |
|
inline |
Split on whitespace / commas.
| [in] | text | Borrowed comma/space/tab/CR/LF-separated list. |
|
inline |
Group tokens in bit order (index i ↔ bit 1u << i).