CFEL - ASG Software Suite
2.5.0
CASS
|
root file creation More...
#include <rootfile_helper.h>
Static Public Member Functions | |
static TFile * | create (const std::string &rootfilename, const std::string &options="RECREATE") |
create and return an instance of the rootfile More... | |
static void | close (TFile *rootfile) |
close root file More... | |
Private Types | |
typedef std::map< std::string, TFile * > | rootfiles_t |
easier code More... | |
Private Member Functions | |
ROOTFileHelper () | |
make default constructor private More... | |
Static Private Attributes | |
static rootfiles_t | _rootfiles |
container for all the root files More... | |
static QMutex | _mutex |
Singleton Mutex to lock write operations. More... | |
root file creation
create an instance of a rootfile and return it. In case ROOT file aready exists return the instance of that root file.
Definition at line 28 of file rootfile_helper.h.
|
private |
easier code
Definition at line 35 of file rootfile_helper.h.
|
inlineprivate |
make default constructor private
Definition at line 32 of file rootfile_helper.h.
|
static |
close root file
rootfile | pointer to the root file instance. pointer should be the same as the one returned in create() |
Definition at line 37 of file rootfile_helper.cpp.
Referenced by cass::pp2001::aboutToQuit(), and cass::pp2000::aboutToQuit().
|
static |
create and return an instance of the rootfile
create an instance of the root file with the given parameters. If the rootfile already exists don't create a new one but return the one already existing
rootfilename | filename of the rootfile |
options | string containing the option with which the root file should be opened. |
Definition at line 27 of file rootfile_helper.cpp.
Referenced by cass::pp2000::loadSettings().
|
staticprivate |
Singleton Mutex to lock write operations.
Definition at line 65 of file rootfile_helper.h.
|
staticprivate |
container for all the root files
Definition at line 62 of file rootfile_helper.h.