#include <CheckpointFile.hpp>
|
| | ~OwnedCheckpointFile () |
| | Remove file.path when this owner has not called retain().
|
| |
| void | retain () noexcept |
| | Release automatic removal responsibility for the companion file.
|
| |
◆ ~OwnedCheckpointFile()
| openswmm::io::OwnedCheckpointFile::~OwnedCheckpointFile |
( |
| ) |
|
Remove file.path when this owner has not called retain().
- Note
- Uses error_code cleanup and ignores removal failures. No other pathname is removed and the companion contract itself owns no open handle.
◆ retain()
| void openswmm::io::OwnedCheckpointFile::retain |
( |
| ) |
|
|
inlinenoexcept |
Release automatic removal responsibility for the companion file.
- Postcondition
- Destruction leaves file.path on disk. Caller takes responsibility for publication or later cleanup; the file is not moved or opened.
◆ file
◆ owned
| bool openswmm::io::OwnedCheckpointFile::owned = true |
The documentation for this struct was generated from the following files: