ImFusion C++ SDK 4.4.0
ImFusion::Utils::FileGuard Struct Reference

#include <ImFusionLabels/lib/include/ImFusion/Labels/Core/FileGuard.h>

Utility RAII class that deletes the given file when destructed. More...

Detailed Description

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::Filefile () const
 FileGuard (FileGuard &&other) noexcept
FileGuardoperator= (FileGuard &&other) noexcept
 FileGuard (const FileGuard &)=delete
FileGuardoperator= (const FileGuard &)=delete

Public Attributes

std::optional< Filesystem::Filem_file

The documentation for this struct was generated from the following file:
  • ImFusionLabels/lib/include/ImFusion/Labels/Core/FileGuard.h
Search Tab / S to search, Esc to close