#include <trivialParser.h>
Public Member Functions | |
double | getVal (std::string name) |
return the value for that parameter More... | |
trivialParser (std::string configFile) | |
ctor More... | |
Private Member Functions | |
void | eraseSpaces (std::string &word) |
get rid of spaces More... | |
std::string | getNextLine (std::ifstream &input) |
returns the next not commented line More... | |
void | parse (std::string configFile) |
parse the cfg file More... | |
void | print (std::string prefix="") |
print the read params More... | |
Private Attributes | |
std::map< std::string, double > | m_config |
container for the output More... | |
This parser is really fragile!!
Definition at line 13 of file trivialParser.h.
|
explicit |
ctor
Definition at line 6 of file trivialParser.cc.
References parse(), and print().
|
private |
get rid of spaces
Definition at line 90 of file trivialParser.cc.
References reco::return().
Referenced by parse().
|
private |
returns the next not commented line
Definition at line 52 of file trivialParser.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by parse().
double trivialParser::getVal | ( | std::string | name | ) |
return the value for that parameter
Definition at line 17 of file trivialParser.cc.
References dtNoiseDBValidation_cfg::cerr, and m_config.
|
private |
parse the cfg file
Definition at line 31 of file trivialParser.cc.
References eraseSpaces(), getNextLine(), input, m_config, mergeVDriftHistosByStation::name, NULL, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.
Referenced by trivialParser().
|
private |
print the read params
Definition at line 74 of file trivialParser.cc.
References dtNoiseDBValidation_cfg::cerr, and m_config.
Referenced by trivialParser().
|
private |
container for the output
Definition at line 25 of file trivialParser.h.