![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
State carried across lines when reading a SWMM .dat timeseries file. More...
#include <timeseriesparse.h>
Public Attributes | |
| double | lastDateJulian = 0.0 |
SWMM DateTime used as the anchor for 2-token lines (the whole-day part). Initialise to a sensible base before parsing the first line — e.g. openswmmvis::core::qDateTimeToSwmmDateTime( QDateTime(QDate(2000,1,1), QTime(0,0), Qt::UTC)). Updated when a 3-token line is read. | |
| bool | anyDateSeen = false |
| Set to true once a 3-token line has been parsed. Lets the caller distinguish "anchor came from the file" vs "anchor was the
GUI's default" for UI hints. | |
State carried across lines when reading a SWMM .dat timeseries file.
The .dat format permits 2-token lines (<time> <value>) that use the most recently parsed date, plus 3-token lines (<date> <time> <value>) that re-anchor it. The cached date is tracked here so the caller can drive a per-line parse loop.
| bool openswmmvis::io::SwmmDatState::anyDateSeen = false |
Set to true once a 3-token line has been parsed. Lets the caller distinguish "anchor came from the file" vs "anchor was the GUI's default" for UI hints.
| double openswmmvis::io::SwmmDatState::lastDateJulian = 0.0 |
SWMM DateTime used as the anchor for 2-token lines (the whole-day part). Initialise to a sensible base before parsing the first line — e.g. openswmmvis::core::qDateTimeToSwmmDateTime( QDateTime(QDate(2000,1,1), QTime(0,0), Qt::UTC)). Updated when a 3-token line is read.