![]() |
Diana Software
|
global reader for root files More...
Public Member Functions | |
| LRootGlobalReader () | |
| ~LRootGlobalReader () | |
| QError | Open (const std::string &filename, const std::string &opt="") |
| Open file, called by QGlobalReaderDispatcher. More... | |
| QError | Close () |
| Close file, called by QGlobalReaderDispatcher. More... | |
| const Diana::QObject * | GetQObject (const std::string &name, const std::string &className, QError &err) const |
Public Member Functions inherited from QGlobalReader | |
| QGlobalReader (const std::string &name) | |
| constructor More... | |
| virtual | ~QGlobalReader () |
| destructor More... | |
| template<class Q > | |
| const Q * | Get (const std::string &name, QError &err) const |
| Get QObject, owned by this reader. More... | |
| template<class Q > | |
| const Q * | Get (const Diana::QGlobalLabel &label, QError &err) const |
| Get QObject, owned by this reader. More... | |
Public Member Functions inherited from QNamed | |
| QNamed () | |
| QNamed (const std::string &Name) | |
| virtual | ~QNamed () |
| const std::string & | GetName () const |
| void | SetName (const std::string &name) |
Private Member Functions | |
| bool | ReadingIsSafe () const |
| std::string | GetFullPath (const std::string &name) const |
Private Attributes | |
| std::string | fFileName |
| TFile * | fFile |
| std::map< std::string, Diana::QObject * > * | fQObjectCache |
Additional Inherited Members | |
Protected Member Functions inherited from QGlobalReader | |
| virtual const Diana::QObject * | GetQObject (const Diana::QGlobalLabel &label, const std::string &className, QError &err) const |
global reader for root files
Definition at line 19 of file LRootGlobalReader.hh.
| LRootGlobalReader::LRootGlobalReader | ( | ) |
Definition at line 15 of file LRootGlobalReader.cc.
| LRootGlobalReader::~LRootGlobalReader | ( | ) |
Definition at line 21 of file LRootGlobalReader.cc.
References fQObjectCache.
|
virtual |
Close file, called by QGlobalReaderDispatcher.
Implements QGlobalReader.
Definition at line 46 of file LRootGlobalReader.cc.
References err, fFile, fQObjectCache, and QERR_SUCCESS.
|
private |
Definition at line 68 of file LRootGlobalReader.cc.
References ROOT_GLOBAL_DIR.
Referenced by GetQObject().
|
virtual |
Reimplemented from QGlobalReader.
Definition at line 74 of file LRootGlobalReader.cc.
References err, fFile, fQObjectCache, GetFullPath(), QNamed::GetName(), QERR_SUCCESS, QERR_UNKNOWN_ERR, and ReadingIsSafe().
|
virtual |
Open file, called by QGlobalReaderDispatcher.
Implements QGlobalReader.
Definition at line 26 of file LRootGlobalReader.cc.
References err, fFile, QERR_CANNOT_OPEN_FILE, and QERR_SUCCESS.
|
private |
|
mutableprivate |
Definition at line 39 of file LRootGlobalReader.hh.
Referenced by Close(), GetQObject(), Open(), and ReadingIsSafe().
|
private |
Definition at line 38 of file LRootGlobalReader.hh.
|
private |
Definition at line 40 of file LRootGlobalReader.hh.
Referenced by Close(), GetQObject(), and ~LRootGlobalReader().