OpenWaterAnalytics / EPANET

The Water Distribution System Hydraulic and Water Quality Analysis Toolkit
MIT License
273 stars 203 forks source link

API can't retrieve level of status reporting #742

Closed LRossman closed 11 months ago

LRossman commented 1 year ago

The existing EN_setstatusreport function only allows API clients to set the level of status reporting. There is no way to retrieve what this level is, such as when it is read in from an EPANET input file. This presents a problem when a third party UI relies on the toolkit API to manage all network data.

I propose adding a new option constant named EN_STATUS_REPORT, that can be used with the EN_setoption and EN_getoption functions to resolve this issue.

LRossman commented 11 months ago

This issue was addressed by PR #743 and can be closed.