Automatically close a TFile object using RAII pattern.
More...
#include <io.h>
Automatically close a TFile object using RAII pattern.
Definition at line 50 of file io.h.
◆ TFileRaii() [1/2]
bdm::TFileRaii::TFileRaii |
( |
const std::string & |
filename, |
|
|
const char * |
mode |
|
) |
| |
Definition at line 66 of file io.cc.
◆ TFileRaii() [2/2]
bdm::TFileRaii::TFileRaii |
( |
TFile * |
file | ) |
|
|
explicit |
Definition at line 69 of file io.cc.
◆ ~TFileRaii()
bdm::TFileRaii::~TFileRaii |
( |
| ) |
|
Definition at line 71 of file io.cc.
◆ Get()
TFile * bdm::TFileRaii::Get |
( |
| ) |
|
Definition at line 76 of file io.cc.
◆ file_
TFile* bdm::TFileRaii::file_ |
|
private |
Definition at line 58 of file io.h.
The documentation for this class was generated from the following files: