A class which keeps track of the entire configuration file. More...
#include <HarpoConfigFile.h>
Public Member Functions | |
HarpoConfigFile () | |
Constructor which does basically nothing. More... | |
HarpoConfigFile (int argc, char **argv, ULong64_t detmask=0x3) | |
Real Constructor. More... | |
virtual | ~HarpoConfigFile () |
Destructor: More... | |
Bool_t | SetCfgFile (const char *fcfg) |
Set Name of libconfig configuration file. More... | |
TString * | GetCfgFile () |
Get Name of libconfig configuration file. More... | |
Bool_t | Exist (const char *path) |
Int_t | getSettingType (const char *path) |
Return paramener type as definef in libconfig.h++. More... | |
Bool_t | Lookup (const char *path, Bool_t &val) |
Lookup function for scalar values. More... | |
Bool_t | Lookup (const char *path, Long64_t &val) |
Bool_t | Lookup (const char *path, ULong64_t &val) |
Bool_t | Lookup (const char *path, Double_t &val) |
Bool_t | Lookup (const char *path, TString &val) |
Bool_t | Lookup (const char *path, TString *&val) |
Int_t | getSettingLength (const char *path) |
Function to deal with arrays or lists. More... | |
Bool_t | LookupElem (const char *path, UInt_t index, Bool_t &val) |
Bool_t | LookupElem (const char *path, UInt_t index, Long64_t &val) |
Bool_t | LookupElem (const char *path, UInt_t index, ULong64_t &val) |
Bool_t | LookupElem (const char *path, UInt_t index, Double_t &val) |
Bool_t | LookupElem (const char *path, UInt_t index, TString &val) |
Bool_t | LookupElem (const char *path, UInt_t index, TString *&val) |
void | print () const |
Protected Attributes | |
libconfig::Config * | lcfg |
TString * | fCfgFile |
Bool_t | infiles |
Config file name. More... | |
A class which keeps track of the entire configuration file.
The class is initialized by calling the Init() where a configuration file and opened and parsed. Subsequently, the user may ask for the values of the the configuration options or whether options were provided
Program interface: prog -c cfgfile OPTIONS [x_rawfile] [y_rawfile] ...
also it paresed variable in [config] sections. the varibles list :
Definition at line 20 of file HarpoConfigFile.h.
HarpoConfigFile::HarpoConfigFile | ( | ) |
Constructor which does basically nothing.
Definition at line 49 of file HarpoConfigFile.cxx.
HarpoConfigFile::HarpoConfigFile | ( | int | argc, |
char ** | argv, | ||
ULong64_t | detmask = 0x3 |
||
) |
Real Constructor.
|
virtual |
Destructor:
Definition at line 56 of file HarpoConfigFile.cxx.
Bool_t HarpoConfigFile::Exist | ( | const char * | path | ) |
|
inline |
Get Name of libconfig configuration file.
Definition at line 37 of file HarpoConfigFile.h.
Int_t HarpoConfigFile::getSettingLength | ( | const char * | path | ) |
Function to deal with arrays or lists.
Definition at line 164 of file HarpoConfigFile.cxx.
Int_t HarpoConfigFile::getSettingType | ( | const char * | path | ) |
Return paramener type as definef in libconfig.h++.
Definition at line 173 of file HarpoConfigFile.cxx.
Bool_t HarpoConfigFile::Lookup | ( | const char * | path, |
Bool_t & | val | ||
) |
Lookup function for scalar values.
Definition at line 85 of file HarpoConfigFile.cxx.
Bool_t HarpoConfigFile::Lookup | ( | const char * | path, |
Long64_t & | val | ||
) |
Definition at line 94 of file HarpoConfigFile.cxx.
Bool_t HarpoConfigFile::Lookup | ( | const char * | path, |
ULong64_t & | val | ||
) |
Definition at line 113 of file HarpoConfigFile.cxx.
Bool_t HarpoConfigFile::Lookup | ( | const char * | path, |
Double_t & | val | ||
) |
Definition at line 132 of file HarpoConfigFile.cxx.
Bool_t HarpoConfigFile::Lookup | ( | const char * | path, |
TString & | val | ||
) |
Definition at line 141 of file HarpoConfigFile.cxx.
Bool_t HarpoConfigFile::Lookup | ( | const char * | path, |
TString *& | val | ||
) |
Definition at line 152 of file HarpoConfigFile.cxx.
Bool_t HarpoConfigFile::LookupElem | ( | const char * | path, |
UInt_t | index, | ||
Bool_t & | val | ||
) |
Bool_t HarpoConfigFile::LookupElem | ( | const char * | path, |
UInt_t | index, | ||
Long64_t & | val | ||
) |
Definition at line 192 of file HarpoConfigFile.cxx.
Bool_t HarpoConfigFile::LookupElem | ( | const char * | path, |
UInt_t | index, | ||
ULong64_t & | val | ||
) |
Definition at line 202 of file HarpoConfigFile.cxx.
Bool_t HarpoConfigFile::LookupElem | ( | const char * | path, |
UInt_t | index, | ||
Double_t & | val | ||
) |
Definition at line 212 of file HarpoConfigFile.cxx.
Bool_t HarpoConfigFile::LookupElem | ( | const char * | path, |
UInt_t | index, | ||
TString & | val | ||
) |
Definition at line 222 of file HarpoConfigFile.cxx.
Bool_t HarpoConfigFile::LookupElem | ( | const char * | path, |
UInt_t | index, | ||
TString *& | val | ||
) |
Definition at line 233 of file HarpoConfigFile.cxx.
void HarpoConfigFile::print | ( | ) | const |
Bool_t HarpoConfigFile::SetCfgFile | ( | const char * | fcfg | ) |
Set Name of libconfig configuration file.
Definition at line 63 of file HarpoConfigFile.cxx.
|
protected |
Definition at line 85 of file HarpoConfigFile.h.
|
protected |
Config file name.
Definition at line 86 of file HarpoConfigFile.h.
|
protected |
Definition at line 83 of file HarpoConfigFile.h.