Extension of TEnv to allow the writing of comments in the file.
Created by KVClassFactory on Mon Jan 14 12:23:45 2013 Author: bonnet
Definition at line 18 of file KVEnv.h.
| KVEnv::KVEnv |
( |
const KVString & |
name = "" | ) |
|
The TEnv constructor has a major bug: its behaviour changes depending on whether the current working directory is the user's home directory or not. If the two are not the same, i.e. outside the home directory, the constructor will try to read the file using just the name as given, after failing to find it in the home directory: in this case, when an absolute filename is given, the TEnv constructor succeeds in finding and opening the file. However, if the same code is executed while in the user's home directory (e.g. user launches 'kaliveda', or 'KaliVedaGUI' or 'KaliVedaSim' in her home directory), this does not work!
Here we try to correct this madness.
Definition at line 25 of file KVEnv.cpp.
template<typename... Ts>
| Value KVEnv::GetValueOf |
( |
Ts... |
args | ) |
const |
|
inline |
Given a list of qualifiers and a default return value/type
ValueType Default(ValueType v=ValueType{}) const
Value GetValueOf(Ts... args) const
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
return the value of
as a const char*, int, double, KVString, int, double, respectively.
Parts of config variable name may be integer values:
will look for variable
Definition at line 70 of file KVEnv.h.