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
openswmmvis::OutputStatsRegistry Class Reference

#include <outputstatsregistry.h>

Inheritance diagram for openswmmvis::OutputStatsRegistry:
Collaboration diagram for openswmmvis::OutputStatsRegistry:

Signals

void identitiesChanged ()
 

Public Member Functions

 OutputStatsRegistry (QObject *parent=nullptr)
 
 ~OutputStatsRegistry () override
 
void registerLayer (SWMMResultsLayer *layer, const QString &resultsFilePath)
 
void unregisterLayer (SWMMResultsLayer *layer)
 
QList< OutputIdentityidentities () const
 
OutputIdentity identityFor (const QUuid &id) const
 

Detailed Description

Per-project registry of loaded output layers.

Constructor & Destructor Documentation

◆ OutputStatsRegistry()

openswmmvis::OutputStatsRegistry::OutputStatsRegistry ( QObject *  parent = nullptr)
explicit

◆ ~OutputStatsRegistry()

openswmmvis::OutputStatsRegistry::~OutputStatsRegistry ( )
overridedefault

Member Function Documentation

◆ identities()

QList< OutputIdentity > openswmmvis::OutputStatsRegistry::identities ( ) const

Snapshot of every currently-registered identity, in registration order.

Here is the caller graph for this function:

◆ identitiesChanged

void openswmmvis::OutputStatsRegistry::identitiesChanged ( )
signal

Emitted after registerLayer / unregisterLayer mutates the set.

Here is the caller graph for this function:

◆ identityFor()

OutputIdentity openswmmvis::OutputStatsRegistry::identityFor ( const QUuid &  id) const

Look up an identity by its stableId. Returns a default-constructed OutputIdentity (null UUID, empty label) when id is the null UUID or no match is found.

◆ registerLayer()

void openswmmvis::OutputStatsRegistry::registerLayer ( SWMMResultsLayer layer,
const QString &  resultsFilePath 
)

Add layer to the registry. No-op if layer is already registered (looked up by pointer identity, not stableId). Emits identitiesChanged() on a real change.

resultsFilePath is captured at registration time and used to derive the short label and tooltip. The registry never calls methods on layer directly — that keeps the registry's .cpp free of any swmmresultslayer.h dependency, which in turn makes unit tests linkable without pulling in the full GUI graph.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unregisterLayer()

void openswmmvis::OutputStatsRegistry::unregisterLayer ( SWMMResultsLayer layer)

Remove layer from the registry. No-op if layer is not registered. Emits identitiesChanged() on a real change.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: