AliRoot Core  3dc7879 (3dc7879)
AliTPCConfigDA Class Reference

Class for Parsing simple text configuration files. More...

#include <AliTPCConfigDA.h>

Inheritance diagram for AliTPCConfigDA:

Public Member Functions

 AliTPCConfigDA ()
 
 AliTPCConfigDA (const char *cfgfile)
 
 AliTPCConfigDA (const AliTPCConfigDA &cfg)
 
AliTPCConfigDAoperator= (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...
 

Detailed Description

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:

  • Lines starting with a # or empty lines are ignored
  • Key and Value are separated either by a <tab> or <space>es

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.

Constructor & Destructor Documentation

AliTPCConfigDA::AliTPCConfigDA ( )

default constructor

Definition at line 44 of file AliTPCConfigDA.cxx.

Referenced by operator=().

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.

AliTPCConfigDA::~AliTPCConfigDA ( )
virtual

dtor

Definition at line 84 of file AliTPCConfigDA.cxx.

Member Function Documentation

const TMap* AliTPCConfigDA::GetConfigurationMap ( ) const
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().

Member Data Documentation

TMap* AliTPCConfigDA::fConfigMap
private

Configuration map.

Definition at line 28 of file AliTPCConfigDA.h.

Referenced by AliTPCConfigDA(), GetConfigurationMap(), GetValue(), ParseConfigFileTxt(), ResetMap(), and ~AliTPCConfigDA().


The documentation for this class was generated from the following files: