00001 #ifndef _QLC_CONFIG_READER_HH_ 00002 #define _QLC_CONFIG_READER_HH_ 00003 00004 #include <map> 00005 #include <string> 00006 #include <vector> 00007 #include "QVector.hh" 00008 #include "QMatrix.hh" 00009 #include "QError.hh" 00010 #include "QLCSlowConfig.hh" 00011 #include "QLCConfigWriter.hh" 00012 00013 class QGlobalReader; 00014 00015 class QLCConfigReader 00016 { 00017 public: 00018 00019 QLCConfigReader(); 00020 QError Open(const std::string& filename, const QLCConfigWriter::Mode mode); 00021 void Close(); 00022 virtual ~QLCConfigReader(); 00023 00024 QError Get(const unsigned short lg, 00025 const std::string& set, 00026 QLCSlowConfig& conf); 00027 00028 QError Get(const std::string& set, 00029 std::map<unsigned short,QLCSlowConfig>& configMap); 00030 00031 private: 00032 QGlobalReader* fReader; 00033 QLCConfigWriter::Mode fMode; 00034 std::string fFilename; 00035 std::map<std::string,std::map<unsigned short,QLCSlowConfig> > fConfigMap; 00036 std::map<unsigned short,QLCSlowConfig> fTempMap; 00037 std::string fTempSet; 00038 00039 }; 00040 00041 #endif