BioDynaMo  v1.03.58-27764645
Public Member Functions | Private Attributes | List of all members
bdm::TFileRaii Class Reference

Automatically close a TFile object using RAII pattern. More...

#include <io.h>

Public Member Functions

 TFileRaii (const std::string &filename, const char *mode)
 
 TFileRaii (TFile *file)
 
 ~TFileRaii ()
 
TFile * Get ()
 

Private Attributes

TFile * file_
 

Detailed Description

Automatically close a TFile object using RAII pattern.

Definition at line 50 of file io.h.

Constructor & Destructor Documentation

◆ 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.

Member Function Documentation

◆ Get()

TFile * bdm::TFileRaii::Get ( )

Definition at line 76 of file io.cc.

Member Data Documentation

◆ 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: