Diana Software
LHDRGlobalReader.hh
Go to the documentation of this file.
1 #ifndef _L_HDR_GLOBAL_READER_HH_
2 #define _L_HDR_GLOBAL_READER_HH_
3 
12 #include "QGlobalReader.hh"
13 #include <map>
14 #include <fstream>
15 
16 class QRunData;
17 
19 {
20  public:
22 
24 
25  QError Open(const std::string& filename, const std::string& opt = "");
26 
27  QError Close();
28 
29  const Diana::QObject* GetQObject(const std::string& name,const std::string& className, QError& err) const;
30 
31 
32  private:
33  void Parse();
34 
35  std::map<std::string, Diana::QObject*>* fQObjectCache;
36 
37  std::ifstream fFile;
38  std::string fName;
39 };
40 
41 #endif
err
Definition: CheckOF.C:114
QError Close()
Close file, called by QGlobalReaderDispatcher.
const Diana::QObject * GetQObject(const std::string &name, const std::string &className, QError &err) const
std::map< std::string, Diana::QObject * > * fQObjectCache
QError Open(const std::string &filename, const std::string &opt="")
Open file, called by QGlobalReaderDispatcher.
std::ifstream fFile
error class with error type and description
Definition: QError.hh:115
Abstract class for global readers.
Basic run based info.
Definition: QRunData.hh:20