SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
rptparser.h
Go to the documentation of this file.
1
13#ifndef OPENSWMMVIS_IO_RPTPARSER_H
14#define OPENSWMMVIS_IO_RPTPARSER_H
15
16#include <QString>
17#include <QStringList>
18#include <QVector>
19
20namespace openswmmvis::io {
21
22struct RptSection {
23 QString title;
24 QString body;
25};
26
28{
29public:
32 static QVector<RptSection> parse(const QString &path,
33 QString *errorOut = nullptr);
34
37 static bool hasHighContinuityError(const QVector<RptSection> &sections,
38 double thresholdPct = 10.0);
39};
40
41} // namespace openswmmvis::io
42
43#endif // OPENSWMMVIS_IO_RPTPARSER_H
Definition rptparser.h:28
static QVector< RptSection > parse(const QString &path, QString *errorOut=nullptr)
Parse a .rpt file into ordered sections.
Definition rptparser.cpp:15
static bool hasHighContinuityError(const QVector< RptSection > &sections, double thresholdPct=10.0)
Quick continuity-error scan — returns true if any "Continuity Error (%)" value exceeds thresholdPct (...
Definition rptparser.cpp:122
Definition gdaldrivers.h:22
int path
Definition pslgminsize.cpp:234
Definition rptparser.h:22
QString title
e.g. "Runoff Quantity Continuity"
Definition rptparser.h:23
QString body
raw text lines for this section.
Definition rptparser.h:24