|
Libmagicxx v10.0.3
A modern C++23 wrapper for libmagic — the library that powers the Unix file command.
|
RAII helper that marks a ProgressTracker as completed on destruction. More...
#include <progress_tracker.hpp>
Public Member Functions | |
| MarkTrackerAsCompleted (SharedProgressTrackerT shared_progress_tracker) noexcept | |
| Construct with a shared progress tracker. | |
| ~MarkTrackerAsCompleted () | |
| Destructor that marks the tracker as completed. | |
Private Attributes | |
| SharedProgressTrackerT | m_shared_progress_tracker |
RAII helper that marks a ProgressTracker as completed on destruction.
This class ensures that a progress tracker is marked as completed when the scope exits, regardless of how the scope is exited (normal return, exception, early exit, etc.).
|
inlineexplicitnoexcept |
Construct with a shared progress tracker.
| [in] | shared_progress_tracker | Tracker to mark as completed on destruction. May be null (no-op in that case). |
|
inline |
Destructor that marks the tracker as completed.
If the tracker is not null, calls MarkAsCompleted() on it.
|
private |
Tracker to complete on destruction.