Diana Software
LASCIIGlobalReader.hh
Go to the documentation of this file.
1 #ifndef _L_ROOT_GLOBAL_READER_HH_
2 #define _L_ROOT_GLOBAL_READER_HH_
3 
12 #include "QGlobalReader.hh"
13 #include "QASCII.hh"
14 #include "QVector.hh"
15 #include "QVectorC.hh"
16 #include <map>
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  const Diana::QObject* GetQObject(const std::string& name,QError& err) const;
34 
35  double GetDouble(const std::string& name,QError& err) const;
36 
37  int GetInt(const std::string& name, QError& err) const;
38 
39  float GetFloat(const std::string& name, QError& err) const;
40 
41  bool GetBool(const std::string& name, QError& err) const;
42 
43  std::string GetString(const std::string& name, QError& err) const;
44 
45  std::string fFileName;
46  std::map<std::string, Diana::QObject*>* fQObjectCache;
48 };
49 
50 #endif
err
Definition: CheckOF.C:114
global reader for txt files
bool GetBool(const std::string &name, QError &err) const
float GetFloat(const std::string &name, QError &err) const
QError Open(const std::string &filename, const std::string &opt="")
Open file, called by QGlobalReaderDispatcher.
QError Close()
Close file, called by QGlobalReaderDispatcher.
const Diana::QObject * GetQObject(const std::string &name, const std::string &className, QError &err) const
int GetInt(const std::string &name, QError &err) const
std::string GetString(const std::string &name, QError &err) const
std::map< std::string, Diana::QObject * > * fQObjectCache
double GetDouble(const std::string &name, QError &err) const
Class for reading and writing ascii text files.
Definition: QASCII.hh:22
error class with error type and description
Definition: QError.hh:115
Abstract class for global readers.