OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
CheckpointFile.hpp File Reference

Versioned checkpoint file serialization and integrity checks. More...

#include <filesystem>
#include <memory>
#include <string>
#include <cstdint>
#include <cstdio>
Include dependency graph for CheckpointFile.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openswmm::io::CheckpointFile
 
struct  openswmm::io::OwnedCheckpointFile
 

Namespaces

namespace  openswmm
 
namespace  openswmm::io
 

Functions

std::shared_ptr< OwnedCheckpointFile > openswmm::io::copyCheckpointFile (const std::filesystem::path &source, uint64_t bytes, const std::filesystem::path &staging_base, int source_descriptor=-1)
 Copy and verify an exact source prefix into a private companion file.
 
uint64_t openswmm::io::checkpointFileSize (const std::filesystem::path &path)
 Read a checkpoint companion's validated size.
 
void openswmm::io::checkpointSeek (FILE *f, uint64_t offset)
 Position an existing stream at an absolute checkpoint byte offset.
 

Detailed Description

Versioned checkpoint file serialization and integrity checks.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License
Apache-2.0