![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Default report plugin: writes SWMM 5.x compatible .rpt report file. More...
#include <DefaultReportPlugin.hpp>
Public Member Functions | |
| DefaultReportPlugin (std::string rpt_path) | |
| ~DefaultReportPlugin () override=default | |
| PluginState | state () const noexcept override |
| Query the current plugin state. | |
| int | initialize (const std::vector< std::string > &init_args, const IPluginComponentInfo *info) override |
| int | validate (const SimulationContext &ctx) override |
| Validate configuration against the loaded model. | |
| int | prepare (const SimulationContext &ctx) override |
| Open report file(s) and write any headers. | |
| int | update (const SimulationSnapshot &snapshot) override |
| Accumulate data from one output step. Called from IO thread. | |
| int | finalize (const SimulationContext &ctx) override |
| Flush and close report file(s). | |
| int | write_summary (const SimulationContext &ctx) override |
| Write the summary statistics table to the .rpt file. | |
| const char * | last_error_message () const noexcept override |
| Get the last error message. | |
Public Member Functions inherited from openswmm::IReportPlugin | |
| virtual | ~IReportPlugin ()=default |
| virtual int | initialize (const std::vector< std::string > &init_args, const class IPluginComponentInfo *info)=0 |
| Initialize from [PLUGINS] arguments. | |
Default report plugin: writes SWMM 5.x compatible .rpt report file.
|
explicit |
|
overridedefault |
|
overridevirtual |
Flush and close report file(s).
| ctx | Final simulation context. |
Implements openswmm::IReportPlugin.
|
override |
|
inlineoverridevirtualnoexcept |
Get the last error message.
Reimplemented from openswmm::IReportPlugin.
|
overridevirtual |
Open report file(s) and write any headers.
| ctx | Simulation context. |
Implements openswmm::IReportPlugin.
|
inlineoverridevirtualnoexcept |
Query the current plugin state.
Implements openswmm::IReportPlugin.
|
overridevirtual |
Accumulate data from one output step. Called from IO thread.
This is optional — some report plugins only use write_summary() and do nothing in update(). The default implementation is a no-op.
| snapshot | Read-only simulation state at this output time step. |
Reimplemented from openswmm::IReportPlugin.
|
overridevirtual |
Validate configuration against the loaded model.
| ctx | Simulation context (after input parsing). |
Implements openswmm::IReportPlugin.
|
overridevirtual |
Write the summary statistics table to the .rpt file.
Implements openswmm::IReportPlugin.