SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
processcomponentsmodel.h File Reference
#include <QAbstractTableModel>
#include <QList>
#include <QString>
#include <QStyledItemDelegate>
#include <openswmm/engine/openswmm_engine.h>
Include dependency graph for processcomponentsmodel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ProcessComponentsModel
 
struct  ProcessComponentsModel::KnownId
 
class  ProcessComponentIdDelegate
 Combo editor over the built-in catalogue, editable for free-form ids. More...
 

Detailed Description

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

U1 (2026-09-07) — MVC model for the model's [PROCESS_COMPONENTS] registrations (Simulation Options → Files / Output / Plugins → Process components). The engine is the single source of truth: load() reads the registrations through swmm_process_component_*, edits are staged in the model, and commit() applies the difference (remove + register — the C API has no "set config"). The reaction editor's one-step "create component + config file" registers straight into the engine; a dialog that re-loads on show sees it.

The Id column offers the engine's built-in catalogue (swmm_process_component_known_*) and still accepts a free-form id, so a component library id (PROG stream D, later) can be typed today.