![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Slice BQ Phase 6.7.3 — shared CSV / TSV / .dat row parser. More...
#include <QChar>#include <QString>#include <vector>Go to the source code of this file.
Classes | |
| struct | openswmmvis::io::SwmmDatState |
| State carried across lines when reading a SWMM .dat timeseries file. More... | |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::io |
Functions | |
| QChar | openswmmvis::io::guessDelimiter (const QString &sampleLine) |
| Guess the per-row delimiter from a sample line. | |
| bool | openswmmvis::io::tryParseTimestamp (const QString &s, double &jOut, double fallbackBase) |
| Try to parse s as a timestamp into a SWMM Julian date. | |
| bool | openswmmvis::io::parseRow (const QString &line, QChar delim, double &timeJulianOut, std::vector< double > &valuesOut, double hoursSinceStartFallbackBase) |
| Parse one delimited row into a timestamp + N value cells. | |
| bool | openswmmvis::io::parseSwmmDatLine (const QString &line, SwmmDatState &state, double &timeJulianOut, double &valueOut) |
| Parse one line of a SWMM .dat timeseries file. | |
Slice BQ Phase 6.7.3 — shared CSV / TSV / .dat row parser.
Extracted from ObservedCsvRunLayer::parseRow_ so the same parser drives:
Supported time formats (tried in order, mirrors legacy + ObservedCsvRunLayer):
Auto-detected delimiters: tab, comma, semicolon (highest-count wins; defaults to comma when none are present).