11using FolderCallback = std::function<void(
const std::filesystem::path& tempFolderName )>;
22 explicit operator bool()
const
24 return !folder_.empty();
26 operator const std::filesystem::path& ( )
const
30 std::filesystem::path
operator /(
const std::filesystem::path& child )
const
32 return folder_ / child;
36 std::filesystem::path folder_;
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
helper class to create a temporary folder; the folder will be removed on the object's destruction
Definition MRUniqueTemporaryFolder.h:15
MRMESH_API ~UniqueTemporaryFolder()
removes folder with all its content
MRMESH_API UniqueTemporaryFolder(FolderCallback onPreTempFolderDelete)
creates new folder in temp directory
std::filesystem::path operator/(const std::filesystem::path &child) const
Definition MRUniqueTemporaryFolder.h:30
Definition MRCameraOrientationPlugin.h:8
std::function< void(const std::filesystem::path &tempFolderName)> FolderCallback
this callback will be called before compression on serialization and after decompression on deseriali...
Definition MRUniqueTemporaryFolder.h:11