Turi Create  4.0
turi::fileio::file_ownership_handle Struct Reference

#include <core/storage/fileio/file_ownership_handle.hpp>

Public Member Functions

 file_ownership_handle (file_ownership_handle &&other)
 move constructor
 
file_ownership_handleoperator= (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.
 

Detailed Description

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.


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