Native RAII save scope; nested joined scopes leave completion to their owner.
More...
#include <extensionstateregistry.h>
Native RAII save scope; nested joined scopes leave completion to their owner.
◆ ExtensionSaveOperation() [1/2]
| openswmmvis::ExtensionSaveOperation::ExtensionSaveOperation |
( |
ExtensionStateRegistry * |
registry, |
|
|
const QList< QUuid > & |
sessions, |
|
|
OpenSWMM::Sdk::SaveKind |
kind, |
|
|
const QString & |
targetPath, |
|
|
QString * |
error = nullptr, |
|
|
bool |
joinExisting = false |
|
) |
| |
Begin or join a correlated save scope.
- Parameters
-
| [in] | registry | Borrowed application registry, guarded through callbacks. |
| [in] | sessions | Affected open-lifetime identities. |
| [in] | kind | Outer transaction category. |
| [in] | targetPath | Intended final destination. |
| [in,out] | error | Optional borrowed diagnostic destination, outliving this scope. |
| [in] | joinExisting | Permit a nested scope to join one shared outer operation. |
◆ ~ExtensionSaveOperation()
| openswmmvis::ExtensionSaveOperation::~ExtensionSaveOperation |
( |
| ) |
|
End an owned operation with success or a captured/fallback failure diagnostic.
◆ ExtensionSaveOperation() [2/2]
Forbid copying a terminal-outcome responsibility.
- Parameters
-
| [in] | other | Unused noncopyable source. |
◆ operationId()
| QUuid openswmmvis::ExtensionSaveOperation::operationId |
( |
| ) |
const |
Read the shared save correlation identity.
- Returns
- Operation UUID or null after refused construction.
◆ operator=()
Forbid assigning a terminal-outcome responsibility.
- Parameters
-
| [in] | other | Unused noncopyable source. |
- Returns
- Assignment is unavailable.
◆ ownsOperation()
| bool openswmmvis::ExtensionSaveOperation::ownsOperation |
( |
| ) |
const |
Inspect terminal-outcome ownership.
- Returns
- True only for a newly created outer scope.
◆ setTargetPath()
| void openswmmvis::ExtensionSaveOperation::setTargetPath |
( |
const QString & |
targetPath | ) |
|
Set a newly determined final destination on an owned outer operation.
- Parameters
-
| [in] | targetPath | Final destination, such as a recovery sidecar selected after snapshotting. |
- Note
- Joined nested scopes cannot replace their outer transaction's destination.
◆ succeed()
| void openswmmvis::ExtensionSaveOperation::succeed |
( |
| ) |
|
Record successful native commit; outer destruction publishes the outcome.
◆ valid()
| bool openswmmvis::ExtensionSaveOperation::valid |
( |
| ) |
const |
Check whether construction accepted an operation.
- Returns
- True for a surviving registry and accepted correlation identity.
The documentation for this class was generated from the following files: