14using FolderCallback = std::function<void(
const std::filesystem::path& tempFolderName )>;
26 explicit operator bool()
const
28 return !folder_.empty();
30 operator const std::filesystem::path& ( )
const
34 std::filesystem::path
operator /(
const std::filesystem::path& child )
const
36 return folder_ / child;
40 std::filesystem::path folder_;
helper class to create a temporary folder; the folder will be removed on the object's destruction
Definition MRUniqueTemporaryFolder.h:18
MRMESH_API ~UniqueTemporaryFolder()
removes folder with all its content
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:14
std::filesystem::path operator/(const std::filesystem::path &child) const
Definition MRUniqueTemporaryFolder.h:34
MRMESH_API UniqueTemporaryFolder(FolderCallback onPreTempFolderDelete={})
creates new folder in temp directory
only for bindings generation
Definition MRCameraOrientationPlugin.h:8