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
INativeEditScope.hpp
Go to the documentation of this file.
1
10#pragma once
11#include <QString>
12namespace OpenSWMM::Sdk
13{
16{
17public:
19 virtual ~INativeEditScope() = default;
23 virtual void *engine() const = 0;
28 virtual bool commit(QString *error = nullptr) = 0;
33 virtual bool abort(QString *error = nullptr) = 0;
34};
35}
Definition INativeEditScope.hpp:16
virtual void * engine() const =0
Borrow the live SWMM_Engine for native C API calls.
virtual bool commit(QString *error=nullptr)=0
Write the after snapshot, rebuild GUI caches and append one undo command.
virtual ~INativeEditScope()=default
Abort an uncommitted transaction before releasing its exclusive lease.
virtual bool abort(QString *error=nullptr)=0
Restore the before snapshot and release the exclusive lease.
Public header-only ABI for independently compiled native GUI extensions.
Definition ExtensionHost.hpp:24
double error
Definition terrainerrorfield.cpp:42