Turi Create
4.0
|
#include <core/storage/fileio/file_ownership_handle.hpp>
Public Member Functions | |
file_ownership_handle (file_ownership_handle &&other) | |
move constructor | |
file_ownership_handle & | operator= (file_ownership_handle &&other) |
move assignment | |
file_ownership_handle (const std::string &file, bool delete_on_destruction=true, bool recursive_deletion=false) | |
construct from one file | |
~file_ownership_handle () | |
Destructor deletes the owned file if delete_on_destruction is true. | |
A simple RAII class which manages the lifespan of one file. On destruction, this file is deleted if marked for deletion.
Definition at line 19 of file file_ownership_handle.hpp.