![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
#include <EngineSourceResultStream.hpp>
Classes | |
| struct | Cursor |
| struct | Frame |
| struct | PreparedRestore |
Public Types | |
| enum class | Kind : uint32_t { Initial , SourceInterval , EngineStep , CouplingBarrier , PrescriptionUpdate , Checkpoint } |
Public Member Functions | |
| EngineSourceResultStream ()=default | |
| Construct an unattached recorder with empty path/cursor and zero accepted clocks. | |
| EngineSourceResultStream (const EngineSourceResultStream &)=delete | |
| EngineSourceResultStream & | operator= (const EngineSourceResultStream &)=delete |
| const Cursor & | cursor () const |
| Borrow the recorder's committed prefix identity, byte/frame counts and rolling fingerprint. | |
| const Frame & | latest () const |
| Borrow the recorder's most recently committed frame. | |
| const std::string & | path () const |
| Borrow the recorder's attached companion filesystem path. | |
| bool | detailed () const |
| Test whether fine source intervals are included on their independent time axis. | |
| bool | hasPendingCapture () const |
| Read whether an engine-level capture remains pending after its physical anchor was obtained. | |
| const std::string & | lastError () const |
| Borrow the recorder's last stored capture error text. | |
| std::size_t | largestFrameBytes () const |
| Read the largest committed encoded frame payload size seen by this recorder. | |
Static Public Member Functions | |
| static std::string | visit (const std::string &, const Cursor &, const std::function< void(const Frame &)> &) |
| Visits a verified saved prefix one frame at a time, without retaining it. | |
Friends | |
| class | openswmm::SWMMEngine |
| class | ExplicitInertialSolver |
Internal, same-platform full-history companion. Unlike qualification tables, retention is independent of duration. Caller owns it through engine close. A failed capture can follow accepted physics/prescriptions; inspect status and settle recording before advancing. It does not roll physics back. Not a public result format, security hash, or power-loss transaction.
|
strong |
|
default |
Construct an unattached recorder with empty path/cursor and zero accepted clocks.
|
delete |
|
inline |
Borrow the recorder's committed prefix identity, byte/frame counts and rolling fingerprint.
|
inline |
Test whether fine source intervals are included on their independent time axis.
|
inline |
Read whether an engine-level capture remains pending after its physical anchor was obtained.
|
inline |
Read the largest committed encoded frame payload size seen by this recorder.
|
inline |
Borrow the recorder's last stored capture error text.
|
inline |
Borrow the recorder's most recently committed frame.
|
delete |
|
inline |
Borrow the recorder's attached companion filesystem path.
|
static |
Visits a verified saved prefix one frame at a time, without retaining it.
Visit and verify a committed saved prefix without retaining complete history.
| [in] | path | Stable non-symlink regular source companion file, at least cursor.bytes long. |
| [in] | cursor | Exact saved identity, byte/frame count and rolling fingerprint. |
| [in] | visitor | Optional synchronous callback for each verified decoded frame; references expire at callback return. Callback effects survive later verification failure and must not mutate the file. |
|
friend |
|
friend |