![]() |
Diana Software
|
global writer for root files More...
Public Member Functions | |
| LRootGlobalWriter () | |
| ~LRootGlobalWriter () | |
| QError | SetQObject (const std::string &name, const std::string &className, const Diana::QObject *obj, const std::string &descr) |
Public Member Functions inherited from QGlobalWriter | |
| QGlobalWriter (const std::string &name) | |
| constructor More... | |
| virtual | ~QGlobalWriter () |
| destructor More... | |
| template<class Q > | |
| QError | Set (const std::string &name, const Q &obj, const std::string &descr="") |
| Set QObject, owned by the caller, - leave it undeclared if you can't implement it. 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 | |
| QError | FlushCache (TFile *oFile) |
| QError | Open (const std::string &filename, const std::string &opt="") |
| Open file, called by QGlobalWriterDispatcher. More... | |
| QError | Close () |
| Close file, called by QGlobalWriterDispatcher. More... | |
Private Attributes | |
| TFile * | fFile |
| std::string | fFileName |
| bool | fIsMRootFileWriter |
| std::map< std::string, Diana::QObject * > | fObjectCache |
Additional Inherited Members |
global writer for root files
Definition at line 20 of file LRootGlobalWriter.hh.
| LRootGlobalWriter::LRootGlobalWriter | ( | ) |
Definition at line 16 of file LRootGlobalWriter.cc.
| LRootGlobalWriter::~LRootGlobalWriter | ( | ) |
Definition at line 22 of file LRootGlobalWriter.cc.
References Close(), and fObjectCache.
|
privatevirtual |
Close file, called by QGlobalWriterDispatcher.
Implements QGlobalWriter.
Definition at line 169 of file LRootGlobalWriter.cc.
References err, fFile, fIsMRootFileWriter, and QERR_SUCCESS.
Referenced by ~LRootGlobalWriter().
|
private |
Definition at line 33 of file LRootGlobalWriter.cc.
References err, fFile, fFileName, fObjectCache, QERR_CANNOT_OPEN_FILE, QERR_SUCCESS, QERR_UNKNOWN_ERR, and ROOT_GLOBAL_DIR.
Referenced by SetQObject().
|
privatevirtual |
Open file, called by QGlobalWriterDispatcher.
Implements QGlobalWriter.
Definition at line 140 of file LRootGlobalWriter.cc.
References err, fFile, fFileName, fIsMRootFileWriter, QERR_CANNOT_OPEN_FILE, QERR_SUCCESS, QERR_UNKNOWN_ERR, and ROOT_GLOBAL_DIR.
|
virtual |
Implements QGlobalWriter.
Definition at line 80 of file LRootGlobalWriter.cc.
References err, fFile, fIsMRootFileWriter, FlushCache(), fObjectCache, QTFilePointer::fP, QERR_CANNOT_OPEN_FILE, QERR_SUCCESS, QERR_UNKNOWN_ERR, and ROOT_GLOBAL_DIR.
|
private |
Definition at line 36 of file LRootGlobalWriter.hh.
Referenced by Close(), FlushCache(), Open(), and SetQObject().
|
private |
Definition at line 37 of file LRootGlobalWriter.hh.
Referenced by FlushCache(), and Open().
|
private |
Definition at line 38 of file LRootGlobalWriter.hh.
Referenced by Close(), Open(), and SetQObject().
|
private |
Definition at line 39 of file LRootGlobalWriter.hh.
Referenced by FlushCache(), SetQObject(), and ~LRootGlobalWriter().