RDII interface file manager (USE = read/override, SAVE = export).
More...
#include <RdiiInterface.hpp>
|
| | ~RdiiInterfaceFile () |
| |
| int | openForRead (SimulationContext &ctx, const std::string &path) |
| | Open an existing RDII file for reading (USE mode).
|
| |
| int | openForWrite (const std::string &path, int rdii_step, const std::vector< int > &node_idx) |
| | Open an RDII file for writing (SAVE mode, binary format).
|
| |
| void | applyFlows (SimulationContext &ctx, double current_date) |
| | USE mode: add the file's RDII flows for current_date to ctx.nodes.rdii_inflow (step-aligned, legacy semantics).
|
| |
| void | saveFlows (double current_date, const std::vector< double > &node_flows) |
| | SAVE mode: write one record (date + per-node flows in cfs).
|
| |
| void | close () |
| |
| bool | isOpen () const |
| |
| bool | isWriting () const |
| |
| int | step () const |
| |
RDII interface file manager (USE = read/override, SAVE = export).
◆ ~RdiiInterfaceFile()
| openswmm::rdii_iface::RdiiInterfaceFile::~RdiiInterfaceFile |
( |
| ) |
|
|
inline |
◆ applyFlows()
| void openswmm::rdii_iface::RdiiInterfaceFile::applyFlows |
( |
SimulationContext & | ctx, |
|
|
double | current_date ) |
USE mode: add the file's RDII flows for current_date to ctx.nodes.rdii_inflow (step-aligned, legacy semantics).
◆ close()
| void openswmm::rdii_iface::RdiiInterfaceFile::close |
( |
| ) |
|
◆ isOpen()
| bool openswmm::rdii_iface::RdiiInterfaceFile::isOpen |
( |
| ) |
const |
|
inline |
◆ isWriting()
| bool openswmm::rdii_iface::RdiiInterfaceFile::isWriting |
( |
| ) |
const |
|
inline |
◆ openForRead()
| int openswmm::rdii_iface::RdiiInterfaceFile::openForRead |
( |
SimulationContext & | ctx, |
|
|
const std::string & | path ) |
Open an existing RDII file for reading (USE mode).
Auto-detects binary vs text format and parses the header.
- Returns
- 0 on success, -1 cannot open, -2 invalid format / unresolvable node.
◆ openForWrite()
| int openswmm::rdii_iface::RdiiInterfaceFile::openForWrite |
( |
const std::string & | path, |
|
|
int | rdii_step, |
|
|
const std::vector< int > & | node_idx ) |
Open an RDII file for writing (SAVE mode, binary format).
- Parameters
-
| rdii_step | Header time step in seconds (wet weather step). |
| node_idx | Node indices carrying RDII (RDIISolver::rdiiNodeList). |
- Returns
- 0 on success, -1 cannot open, -2 nothing to save (empty list).
◆ saveFlows()
| void openswmm::rdii_iface::RdiiInterfaceFile::saveFlows |
( |
double | current_date, |
|
|
const std::vector< double > & | node_flows ) |
SAVE mode: write one record (date + per-node flows in cfs).
- Parameters
-
| node_flows | Per-node RDII flow array sized n_nodes (RDIISolver::nodeFlows()). |
◆ step()
| int openswmm::rdii_iface::RdiiInterfaceFile::step |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files:
- /home/runner/work/openswmm.engine/openswmm.engine/src/engine/hydrology/RdiiInterface.hpp
- /home/runner/work/openswmm.engine/openswmm.engine/src/engine/hydrology/RdiiInterface.cpp