MeshLib Documentation
Loading...
Searching...
No Matches
MR::UniqueTemporaryFolder Class Reference

helper class to create a temporary folder; the folder will be removed on the object's destruction More...

#include <MRUniqueTemporaryFolder.h>

Public Member Functions

MRMESH_API UniqueTemporaryFolder (FolderCallback onPreTempFolderDelete)
 creates new folder in temp directory
 
MRMESH_API ~UniqueTemporaryFolder ()
 removes folder with all its content
 
 operator bool () const
 
std::filesystem::path operator/ (const std::filesystem::path &child) const
 

Detailed Description

helper class to create a temporary folder; the folder will be removed on the object's destruction

Constructor & Destructor Documentation

◆ UniqueTemporaryFolder()

MRMESH_API MR::UniqueTemporaryFolder::UniqueTemporaryFolder ( FolderCallback onPreTempFolderDelete)

creates new folder in temp directory

◆ ~UniqueTemporaryFolder()

MRMESH_API MR::UniqueTemporaryFolder::~UniqueTemporaryFolder ( )

removes folder with all its content

Member Function Documentation

◆ operator bool()

MR::UniqueTemporaryFolder::operator bool ( ) const
inlineexplicit

◆ operator/()

std::filesystem::path MR::UniqueTemporaryFolder::operator/ ( const std::filesystem::path & child) const
inline

The documentation for this class was generated from the following file: