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

[PLUGINS] section handler (Phase 4, R12). More...

#include <vector>
#include <string>
Include dependency graph for PluginsHandler.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_plugins (SimulationContext &ctx, const std::vector< std::string > &lines)
 Parse [PLUGINS] into ctx.plugin_specs.
 

Detailed Description

[PLUGINS] section handler (Phase 4, R12).

Parses plugin library paths and per-plugin init arguments. The parsed specs are stored in SimulationContext and consumed by PluginFactory during SWMMEngine::open().

Row format (whitespace or comma delimited):

[PLUGINS]
;;Path Args
./plugins/hdf5_output.so file="results.h5" compress=9
./plugins/csv_report.dylib file="report.csv" delimiter=","

The first token is the shared library path. All remaining tokens are the init_args passed verbatim to IOutputPlugin::initialize() / IReportPlugin::initialize().

See also
PluginFactory.hpp
src/engine/plugins/PluginFactory.hpp
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License