Own an unpublished derivative and its temporary sibling path. More...
Public Member Functions | |
| TemporaryOutput (const std::string &output) | |
| Open an exclusive temporary file beside the requested output. | |
| ~TemporaryOutput () | |
| Remove an unpublished temporary pathname. | |
Data Fields | |
| std::string | path |
| File | file |
Detailed Description
Own an unpublished derivative and its temporary sibling path.
Definition at line 443 of file camera_lens.cpp.
Constructor & Destructor Documentation
◆ TemporaryOutput()
|
inlineexplicit |
Open an exclusive temporary file beside the requested output.
- Parameters
-
output Final derivative path.
- Exceptions
-
std::runtime_error If temporary-file creation or stream setup fails.
A sibling path permits rename-based publication on the same filesystem. Clean up the descriptor and file if wrapping it fails.
Definition at line 451 of file camera_lens.cpp.
◆ ~TemporaryOutput()
|
inline |
Remove an unpublished temporary pathname.
A successful rename has already moved the file; cleanup targets only the temporary name, never the published derivative.
Definition at line 466 of file camera_lens.cpp.
Field Documentation
◆ file
| File camera_lens_detail::TemporaryOutput::file |
Definition at line 445 of file camera_lens.cpp.
◆ path
| std::string camera_lens_detail::TemporaryOutput::path |
Definition at line 444 of file camera_lens.cpp.
The documentation for this struct was generated from the following file:
- src/camera_lens.cpp