CMS 3D CMS Logo

trivialParser.h
Go to the documentation of this file.
1 
5 #ifndef trivialParser_h
6 #define trivialParser_h
7 
8 #include <string>
9 #include <map>
10 #include <fstream>
11 
13 public:
15  explicit trivialParser(std::string configFile);
17  double getVal(std::string name);
18 
19 private:
21  std::map<std::string, double> m_config;
22 
23 private:
25  void parse(std::string configFile);
27  void print(std::string prefix = "");
29  std::string getNextLine(std::ifstream& input);
32 };
33 
34 #endif
input
static const std::string input
Definition: EdmProvDump.cc:48
trivialParser::eraseSpaces
void eraseSpaces(std::string &word)
get rid of spaces
Definition: trivialParser.cc:63
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
trivialParser::getNextLine
std::string getNextLine(std::ifstream &input)
returns the next not commented line
Definition: trivialParser.cc:39
trivialParser::getVal
double getVal(std::string name)
return the value for that parameter
Definition: trivialParser.cc:13
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trivialParser::print
void print(std::string prefix="")
print the read params
Definition: trivialParser.cc:54
trivialParser::parse
void parse(std::string configFile)
parse the cfg file
Definition: trivialParser.cc:22
trivialParser::trivialParser
trivialParser(std::string configFile)
ctor
Definition: trivialParser.cc:6
trivialParser::m_config
std::map< std::string, double > m_config
container for the output
Definition: trivialParser.h:21
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trivialParser
Definition: trivialParser.h:12
hcallasereventfilter2012_cfi.prefix
prefix
Definition: hcallasereventfilter2012_cfi.py:10