]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCConfigParser.h
Attempt to fix a memory leak (Jens)
[u/mrichter/AliRoot.git] / TPC / AliTPCConfigParser.h
index 6e4e9c4a20592fe0d1ffaeb9fbd4d4db9ba02032..b1f1eb406fe935ef3117b9e11f111afea3e7a870 100644 (file)
@@ -18,14 +18,24 @@ public:
   virtual ~AliTPCConfigParser();
   
   Int_t ParseConfigFileTxt(const char* cfgfile);
-  Float_t GetValue(const char* name, UInt_t position=0); 
-
+  Float_t GetValue(const char* key, UInt_t position=0);
+  Float_t GetValue(const TObject *key, UInt_t position=0);
+  const char*  GetData(const char* key, UInt_t position=0);
+  const char*  GetData(const TObject* key, UInt_t position=0);
+  
+  Int_t GetNumberOfValues(const char* key) const;
+  Int_t GetNumberOfValues(TObject* key) const;
+  
   const TList* GetConfigurationMap() const {return fConfigMap;}
   void ResetMap();
 
-  const TList*    operator()() const {return fConfigMap;}
+  const TList*   operator()() const {return fConfigMap;}
+  const TObject* operator()(Int_t pos) const {return fConfigMap->At(pos);}
   const TObject* operator()(const char* key) const {return fConfigMap->FindObject(key);}
   const TObject* operator()(TObject* key) const {return fConfigMap->FindObject(key);}
+
+  void ResetIter() {delete fKeyIter; fKeyIter=0; delete fValIter; fValIter=0;}
+  
   TObject* NextKey();
   TObject* NextValue(const char *key);
   TObject* NextValue(TObject *key);