Belle II Software  release-08-01-10
FileSystem::TemporaryFile Class Reference

Helper file to create a temporary file and ensure deletion if object goes out of scope. More...

#include <FileSystem.h>

Inheritance diagram for FileSystem::TemporaryFile:
Collaboration diagram for FileSystem::TemporaryFile:

Public Member Functions

 TemporaryFile (std::ios_base::openmode mode=std::ios_base::trunc|std::ios_base::out)
 construct a new temporary file
 
 TemporaryFile (const TemporaryFile &)=delete
 prevent assignment
 
 TemporaryFile (TemporaryFile &&)=delete
 and no move construction as basic_ios doesn't allow that
 
TemporaryFileoperator= (const TemporaryFile &)=delete
 prevent copy constructor
 
 ~TemporaryFile ()
 close file and delete on destruction
 
std::string getName () const
 get filename of the temporary file
 

Private Attributes

std::string m_filename
 filename of the temporary file
 

Detailed Description

Helper file to create a temporary file and ensure deletion if object goes out of scope.

Definition at line 128 of file FileSystem.h.


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