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::ExtensionResultsBridge Class Referencefinal

Per-session attached result lifecycle and published cursor/variable metadata. More...

#include <extensionviewaccess.h>

Inheritance diagram for openswmmvis::ExtensionResultsBridge:
Collaboration diagram for openswmmvis::ExtensionResultsBridge:

Classes

struct  Data
 Private attached-reader records; QObject connection handles have explicit ownership. More...
 

Public Member Functions

 ExtensionResultsBridge (SWMMVisProjectWindow *window, std::function< QUuid(OpenSWMMVisLayer *)> identity, ViewEventSink changed)
 Watch attached sources and the window's active source choices.
 
 ~ExtensionResultsBridge () override
 Disconnect result/source/style watchers.
 
QList< OpenSWMM::Sdk::ResultsViewState > snapshot () const
 Read copied native reader/source/channel state outside public getters.
 
bool execute (const OpenSWMM::Sdk::ViewCommand &command, OpenSWMMVisLayer *layer, QString *error)
 Execute a results controller action against a current attachment.
 

Detailed Description

Per-session attached result lifecycle and published cursor/variable metadata.

Constructor & Destructor Documentation

◆ ExtensionResultsBridge()

openswmmvis::ExtensionResultsBridge::ExtensionResultsBridge ( SWMMVisProjectWindow *  window,
std::function< QUuid(OpenSWMMVisLayer *)>  identity,
ViewEventSink  changed 
)

Watch attached sources and the window's active source choices.

Parameters
[in]windowNative owner and results controller.
[in]identityLookup-only current layer-attachment resolver.
[in]changedCopied result observation sink.

◆ ~ExtensionResultsBridge()

openswmmvis::ExtensionResultsBridge::~ExtensionResultsBridge ( )
override

Disconnect result/source/style watchers.

Member Function Documentation

◆ execute()

bool openswmmvis::ExtensionResultsBridge::execute ( const OpenSWMM::Sdk::ViewCommand &  command,
OpenSWMMVisLayer *  layer,
QString *  error 
)

Execute a results controller action against a current attachment.

Parameters
[in]commandValidated session request.
[in]layerBorrowed resolved native layer.
[out]errorOptional refusal detail, cleared on success.
Returns
True for an accepted action/no-op; async seek need not yet be displayed.

◆ snapshot()

QList< ResultsViewState > openswmmvis::ExtensionResultsBridge::snapshot ( ) const

Read copied native reader/source/channel state outside public getters.

Returns
Current attached results metadata.

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