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

[FILES] section handler — secondary file references. More...

#include <vector>
#include <string>
Include dependency graph for FilesHandler.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::input
 

Functions

void openswmm::input::handle_files (SimulationContext &ctx, const std::vector< std::string > &lines)
 Parse the [FILES] section into ctx.files.
 

Detailed Description

[FILES] section handler — secondary file references.

Parses the legacy SWMM5 [FILES] section into SimulationContext::files. Row format:

[FILES]
SAVE/USE FileType "path" [date time]
FileType
Enumeration of file types used in SWMM5.
Definition enums.h:145
     Where FileType ∈ {RAINFALL, RUNOFF, RDII, INFLOWS, OUTFLOWS,
     HOTSTART}.  The optional date/time tokens apply only to
     `SAVE HOTSTART` and are stored on the `hotstart_save_datetime`
     field as a fractional-day SWMM date.

     Multi-row `SAVE HOTSTART` (legacy supported up to 10) is not
     yet honoured: each new SAVE row overwrites the previous slot.
     Lift to a vector when a real workflow needs it.
See also
src/engine/core/SimulationContext.hppFilesSpec struct.
src/legacy/engine/iface.c — legacy parser this mirrors.
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License