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
IEngineLease.hpp
Go to the documentation of this file.
1
10#pragma once
11namespace OpenSWMM::Sdk
12{
14enum class LeaseKind {
15 Read,
16 Write
17};
20{
21public:
23 virtual ~IEngineLease() = default;
27 virtual void *engine() const = 0;
28};
29}
Definition IEngineLease.hpp:20
virtual void * engine() const =0
Borrow the current engine while this lease is alive.
virtual ~IEngineLease()=default
Release the lease on the GUI thread without closing the borrowed engine.
Public header-only ABI for independently compiled native GUI extensions.
Definition ExtensionHost.hpp:24
LeaseKind
Requested access to a GUI-owned model engine.
Definition IEngineLease.hpp:14
@ Write
Exclusive native access, excluding all other leases and runs.
@ Read
Shared read access, excluding runs and any writer.