![]() |
ImFusion C++ SDK 4.4.0
|
#include <ImFusionLabels/lib/include/ImFusion/Labels/Core/FileGuard.h>
Utility RAII class that deletes the given file when destructed. More...
Utility RAII class that deletes the given file when destructed.
Public Member Functions | |
| FileGuard (const Filesystem::File &dir) | |
| Constructor: Copies the File object, not the underlying file on the filesystem. | |
| const Filesystem::File & | file () const |
| FileGuard (FileGuard &&other) noexcept | |
| FileGuard & | operator= (FileGuard &&other) noexcept |
| FileGuard (const FileGuard &)=delete | |
| FileGuard & | operator= (const FileGuard &)=delete |
Public Attributes | |
| std::optional< Filesystem::File > | m_file |