00001 #ifndef _L_ROOT_GLOBAL_READER_HH_
00002 #define _L_ROOT_GLOBAL_READER_HH_
00003
00012 #include "QGlobalReader.hh"
00013 #include "QASCII.hh"
00014 #include "QVector.hh"
00015 #include "QVectorC.hh"
00016 #include <map>
00017
00018 class LASCIIGlobalReader : public QGlobalReader
00019 {
00020 public:
00021 LASCIIGlobalReader();
00022
00023 ~LASCIIGlobalReader();
00024
00025 QError Open(const std::string& filename, const std::string& opt = "");
00026
00027 QError Close();
00028
00029 const QObject* GetQObject(const std::string& name) const;
00030
00031 double GetDouble(const std::string& name) const;
00032
00033 int GetInt(const std::string& name) const;
00034
00035 float GetFloat(const std::string& name) const;
00036
00037 bool GetBool(const std::string& name) const;
00038
00039 std::string GetString(const std::string& name) const;
00040
00041
00042
00043
00044
00045 private:
00046 std::string fFileName;
00047 std::map<std::string, QObject*>* fQObjectCache;
00048 QASCII* fFile;
00049 };
00050
00051 #endif