forked from ALICEHLT/AliRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAliTPCConfigParser.h
More file actions
56 lines (42 loc) · 1.73 KB
/
AliTPCConfigParser.h
File metadata and controls
56 lines (42 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/// \class AliTPCConfigParser
#ifndef AliTPCConfigParser_H
#define AliTPCConfigParser_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
#include <TObject.h>
class TObjArray;
class TList;
class AliTPCConfigParser : public TObject{
public:
AliTPCConfigParser();
AliTPCConfigParser(const char* cfgfile);
AliTPCConfigParser(const AliTPCConfigParser &cfg);
AliTPCConfigParser& operator = (const AliTPCConfigParser &cfg);
virtual ~AliTPCConfigParser();
Int_t ParseConfigFileTxt(const char* cfgfile);
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 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);
private:
TList *fConfigMap;
TIterator *fKeyIter;
TIterator *fValIter;
TObject *NextValueIter(TObjArray *obj);
/// \cond CLASSIMP
ClassDef(AliTPCConfigParser, 1) // TPC DA configuration file parser
/// \endcond
};
#endif