![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Multi-delimiter tokenizer for SWMM input files. More...
#include <string>#include <string_view>#include <vector>Go to the source code of this file.
Classes | |
| class | openswmm::input::Tokenizer |
| Stateless multi-delimiter tokenizer for SWMM input lines. More... | |
Namespaces | |
| namespace | openswmm |
| namespace | openswmm::input |
Multi-delimiter tokenizer for SWMM input files.
Replaces the legacy space-only tokenizer in src/solver/input.c. The new tokenizer handles comma, tab, and one-or-more spaces as delimiters. This allows input files to be formatted as:
| Feature | Legacy (input.c) | New Tokenizer |
|---|---|---|
| Delimiters | Space only | Space, tab, comma |
| Comment char | ; (semicolon) | ; or ;; |
| Quoted strings | Not supported | Supported (double-quotes) |
| Performance | sscanf-based | std::string_view, no allocations |