OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
SectionParser.hpp File Reference

Utility for splitting raw INP section lines into (data, comment) pairs. More...

#include <string>
#include <vector>
Include dependency graph for SectionParser.hpp:
This graph shows which files directly or indirectly include this file:

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< ParsedLineopenswmm::input::parse_section (const std::vector< std::string > &raw_lines)
 Split raw section lines into (data, comment) pairs.
 

Detailed Description

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.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License