![]() |
AliRoot Core
3dc7879 (3dc7879)
|
Class for Parsing simple text configuration files. More...
#include <AliTPCConfigDA.h>
Public Member Functions | |
AliTPCConfigDA () | |
AliTPCConfigDA (const char *cfgfile) | |
AliTPCConfigDA (const AliTPCConfigDA &cfg) | |
AliTPCConfigDA & | operator= (const AliTPCConfigDA &cfg) |
virtual | ~AliTPCConfigDA () |
Int_t | ParseConfigFileTxt (const char *cfgfile) |
Float_t | GetValue (const char *name) const |
const TMap * | GetConfigurationMap () const |
void | ResetMap () |
Private Attributes | |
TMap * | fConfigMap |
Configuration map. More... | |
Class for Parsing simple text configuration files.
Simple configuration file parser.
It produces a TMap for the Key=>Value pairs found in the Configutation file.
The configuration file has a simple structure:
Currently the class is used in the TPC DAs to allow an adjustment of the most relevant parameters without recompiling the DAs
Definition at line 11 of file AliTPCConfigDA.h.
AliTPCConfigDA::AliTPCConfigDA | ( | ) |
AliTPCConfigDA::AliTPCConfigDA | ( | const char * | cfgfile | ) |
default constructor using the config file name as input parameter
Definition at line 63 of file AliTPCConfigDA.cxx.
AliTPCConfigDA::AliTPCConfigDA | ( | const AliTPCConfigDA & | cfg | ) |
copy constructor
Definition at line 53 of file AliTPCConfigDA.cxx.
|
virtual |
dtor
Definition at line 84 of file AliTPCConfigDA.cxx.
|
inline |
Definition at line 24 of file AliTPCConfigDA.h.
Referenced by main().
Float_t AliTPCConfigDA::GetValue | ( | const char * | name | ) | const |
Get value for the speciefied key
Definition at line 129 of file AliTPCConfigDA.cxx.
Referenced by main().
AliTPCConfigDA & AliTPCConfigDA::operator= | ( | const AliTPCConfigDA & | cfg | ) |
assignment operator
Definition at line 74 of file AliTPCConfigDA.cxx.
Int_t AliTPCConfigDA::ParseConfigFileTxt | ( | const char * | cfgfile | ) |
Function to parse a configuration file
Definition at line 91 of file AliTPCConfigDA.cxx.
Referenced by AliTPCConfigDA().
void AliTPCConfigDA::ResetMap | ( | ) |
Reset the map with the configuration values
Definition at line 139 of file AliTPCConfigDA.cxx.
Referenced by GetConfigurationMap().
|
private |
Configuration map.
Definition at line 28 of file AliTPCConfigDA.h.
Referenced by AliTPCConfigDA(), GetConfigurationMap(), GetValue(), ParseConfigFileTxt(), ResetMap(), and ~AliTPCConfigDA().