#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 12 of file trivialParser.h.
|
explicit |
|
private |
|
private |
returns the next not commented line
Definition at line 39 of file trivialParser.cc.
References input, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by parse().
double trivialParser::getVal | ( | std::string | name | ) |
return the value for that parameter
Definition at line 13 of file trivialParser.cc.
References beam_dqm_sourceclient-live_cfg::cerr, m_config, and Skims_PA_cff::name.
|
private |
parse the cfg file
Definition at line 22 of file trivialParser.cc.
References eraseSpaces(), getNextLine(), input, m_config, Skims_PA_cff::name, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.
Referenced by trivialParser().
|
private |
print the read params
Definition at line 54 of file trivialParser.cc.
References beam_dqm_sourceclient-live_cfg::cerr, m_config, and ZMuMuAnalysisNtupler_cff::prefix.
Referenced by trivialParser().
|
private |
container for the output
Definition at line 21 of file trivialParser.h.