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

SWMM-native timeseries text-file parser / materialiser. More...

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

Go to the source code of this file.

Namespaces

namespace  openswmm
 
namespace  openswmm::gpkg
 
namespace  openswmm::gpkg::formats
 

Functions

FormatResult openswmm::gpkg::formats::parseTimeseriesText (const std::string &path, std::vector< TimeseriesRow > &rows)
 Parse a SWMM-native timeseries text file at path into rows.
 
FormatResult openswmm::gpkg::formats::writeTimeseriesText (const std::string &path, const std::vector< TimeseriesRow > &rows)
 Write rows back to a SWMM-native timeseries text file at path.
 

Detailed Description

SWMM-native timeseries text-file parser / materialiser.

Slice IO-6a. Wire format (one row per line, whitespace or tab delimited):

;; optional comment lines (start with `;`)
MM/DD/YYYY H:MM value
MM/DD/YYYY H:MM[:SS] value
    Mirrors the loader already present in
    `input/PostParseResolver.cpp::load_external_timeseries_files`
    (Slice IO-3); the parser here is the extraction so other
    consumers (the GeoPackage import path in IO-7) can read the
    same files into `formats::TimeseriesRow` rows directly.
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License