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
extensionevents.h
Go to the documentation of this file.
1
11#pragma once
12#include "sdk/IModelEvents.hpp"
13#include <QVariantMap>
14#include <optional>
15
16namespace openswmmvis
17{
22std::optional<OpenSWMM::Sdk::Event> decodeExtensionEvent(const QString &name,
23 const QVariantMap &data);
27std::pair<QString, QVariantMap> legacyExtensionEvent(const OpenSWMM::Sdk::Event &event);
28}
Versioned, typed observations of GUI extension host state.
Definition aquiferprovider.h:24
std::optional< OpenSWMM::Sdk::Event > decodeExtensionEvent(const QString &name, const QVariantMap &data)
Decode a known notification without assigning its publication sequence.
Definition extensionevents.cpp:16
std::pair< QString, QVariantMap > legacyExtensionEvent(const OpenSWMM::Sdk::Event &event)
Project a valid host-created typed value onto the compatible legacy surface.
Definition extensionevents.cpp:63
One typed observation published by an extension's host facade.
Definition IModelEvents.hpp:118