OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::DefaultOutputPlugin::PreparedCheckpoint Struct Reference
Collaboration diagram for openswmm::DefaultOutputPlugin::PreparedCheckpoint:

Public Member Functions

 ~PreparedCheckpoint ()
 Close an unadopted staged stream and release abandoned staging ownership. If file_copy owns cleanup, its shared owner removes that companion instead. Otherwise a nonempty staging path is removed with ignored error_code failures. Adoption clears/transfers stream/path to prevent deleting the published output.
 

Public Attributes

std::filesystem::path staging
 
FILE * stream = nullptr
 
int periods = 0
 
std::shared_ptr< io::OwnedCheckpointFile > file_copy
 

Constructor & Destructor Documentation

◆ ~PreparedCheckpoint()

openswmm::DefaultOutputPlugin::PreparedCheckpoint::~PreparedCheckpoint ( )
inline

Close an unadopted staged stream and release abandoned staging ownership. If file_copy owns cleanup, its shared owner removes that companion instead. Otherwise a nonempty staging path is removed with ignored error_code failures. Adoption clears/transfers stream/path to prevent deleting the published output.

Member Data Documentation

◆ file_copy

std::shared_ptr<io::OwnedCheckpointFile> openswmm::DefaultOutputPlugin::PreparedCheckpoint::file_copy

◆ periods

int openswmm::DefaultOutputPlugin::PreparedCheckpoint::periods = 0

◆ staging

std::filesystem::path openswmm::DefaultOutputPlugin::PreparedCheckpoint::staging

◆ stream

FILE* openswmm::DefaultOutputPlugin::PreparedCheckpoint::stream = nullptr

The documentation for this struct was generated from the following file: