An RAII wrapper around an open temporary file on disk.
It cleans up the guarded file when the wrapper object goes out of scope.
Definition at line 159 of file TestSupport.hxx.
Public Member Functions | |
| FileRaii (const FileRaii &)=delete | |
| FileRaii (const std::string &path) | |
| FileRaii (FileRaii &&)=default | |
| ~FileRaii () | |
| std::string | GetPath () const |
| FileRaii & | operator= (const FileRaii &)=delete |
| FileRaii & | operator= (FileRaii &&)=default |
| void | PreserveFile () |
Private Attributes | |
| std::string | fPath |
| bool | fPreserveFile = false |
#include <ROOT/TestSupport.hxx>
|
inlineexplicit |
Definition at line 165 of file TestSupport.hxx.
|
default |
|
inline |
Definition at line 170 of file TestSupport.hxx.
|
inline |
Definition at line 175 of file TestSupport.hxx.
|
inline |
Definition at line 179 of file TestSupport.hxx.
|
private |
Definition at line 161 of file TestSupport.hxx.
Definition at line 162 of file TestSupport.hxx.