![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Utility for splitting raw INP section lines into (data, comment) pairs. More...
#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | openswmm::input::ParsedLine |
| One data row together with its associated object comment. More... | |
Namespaces | |
| namespace | openswmm |
| namespace | openswmm::input |
Functions | |
| std::vector< ParsedLine > | openswmm::input::parse_section (const std::vector< std::string > &raw_lines) |
| Split raw section lines into (data, comment) pairs. | |
Utility for splitting raw INP section lines into (data, comment) pairs.
Preserves per-object comments written by the legacy SWMM GUI. Comment storage format: multiple lines are joined with the literal two-character token "\\n" (backslash + n) so that each comments string remains a flat, single-line value suitable for direct storage in SQLite TEXT columns. The InpWriter splits on that token when emitting ';'-prefixed rows.