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:
17  double getVal(std::string name);
18 
19 private:
21  std::map<std::string, double> m_config;
22 
23 private:
27  void print(std::string prefix = "");
29  std::string getNextLine(std::ifstream& input);
32 };
33 
34 #endif
void print(std::string prefix="")
print the read params
static std::string const input
Definition: EdmProvDump.cc:50
double getVal(std::string name)
return the value for that parameter
uint64_t word
trivialParser(std::string configFile)
ctor
Definition: trivialParser.cc:6
void parse(std::string configFile)
parse the cfg file
std::string getNextLine(std::ifstream &input)
returns the next not commented line
std::map< std::string, double > m_config
container for the output
Definition: trivialParser.h:21
void eraseSpaces(std::string &word)
get rid of spaces