HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes
HarpoConfigFile Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

HarpoConfigFile::~HarpoConfigFile ( )
virtual

Destructor:

Definition at line 56 of file HarpoConfigFile.cxx.

Member Function Documentation

Bool_t HarpoConfigFile::Exist ( const char *  path)

Definition at line 80 of file HarpoConfigFile.cxx.

Here is the caller graph for this function:

TString* HarpoConfigFile::GetCfgFile ( )
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.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

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 
)

Definition at line 182 of file HarpoConfigFile.cxx.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

Field Documentation

TString* HarpoConfigFile::fCfgFile
protected

Definition at line 85 of file HarpoConfigFile.h.

Bool_t HarpoConfigFile::infiles
protected

Config file name.

Definition at line 86 of file HarpoConfigFile.h.

libconfig::Config* HarpoConfigFile::lcfg
protected

Definition at line 83 of file HarpoConfigFile.h.


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