![]() |
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 , ALL_MASK = (1u << 11) - 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) |
| 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) |
| HH:MM:SS (REPORT_STEP spelling). | |
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.
|
inline |
"ALL" for an empty (unfiltered) list, else the space-separated names.
|
inline |
HH:MM:SS (REPORT_STEP spelling).
|
inline |
|
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.
|
inline |
Species list from text; "ALL" (alone) → empty list.
|
inline |
Split on whitespace / commas.
|
inline |
Group tokens in bit order (index i ↔ bit 1u << i).