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

Internal C++ class for reading SWMM 5.x binary output files. More...

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

Go to the source code of this file.

Classes

class  openswmm::OutputReader
 Reads SWMM 5.x binary .out files produced by DefaultOutputPlugin. More...
 

Namespaces

namespace  openswmm
 

Detailed Description

Internal C++ class for reading SWMM 5.x binary output files.

Reads the binary .out format produced by DefaultOutputPlugin. This is an internal implementation class — the public API is the C FFI in openswmm_output.h.

Binary layout: [Header] magic, version, flow_units, counts (7×int32) [ID Section] subcatch/node/link names (len-prefixed strings) [Input Section] static properties (subcatch areas, node/link geometry) [Variable Codes] per-type variable code arrays + report metadata [Output Section] per-period: date(8B) + subcatch + node + link + system results [Footer] id_start, input_start, output_start, n_periods, error_code, magic

See also
DefaultOutputPlugin.cpp for the writer
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License