14using FolderCallback = std::function<void(
const std::filesystem::path& tempFolderName )>;
32 explicit operator
bool()
const
34 return !folder_.empty();
36 operator const std::filesystem::path& ( )
const
40 std::filesystem::path
operator /(
const std::filesystem::path& child )
const
42 return folder_ / child;
46 std::filesystem::path folder_;
#define MRMESH_API
Definition MRMeshFwd.h:82
UniqueTemporaryFolder(const UniqueTemporaryFolder &)=delete
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
UniqueTemporaryFolder(UniqueTemporaryFolder &&) noexcept=default
~UniqueTemporaryFolder()
removes folder with all its content
std::filesystem::path operator/(const std::filesystem::path &child) const
Definition MRUniqueTemporaryFolder.h:40
UniqueTemporaryFolder(FolderCallback onPreTempFolderDelete={})
creates new folder in temp directory
only for bindings generation
Definition MRCameraOrientationPlugin.h:8