CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QTestConfigurationParser.h
Go to the documentation of this file.
1 #ifndef QTestConfigurationParser_H
2 #define QTestConfigurationParser_H
3 
16 
17 #include<iostream>
18 #include<string>
19 #include<vector>
20 #include<map>
21 
23 
25 
26  public:
34  std::map<std::string, std::map<std::string, std::string> > testsList() const { return testsRequested;}
36  std::map<std::string, std::vector<std::string> > meToTestsList() const { return mapMonitorElementTests;}
37 
38  private:
39  bool qtestsConfig();
41  std::map<std::string, std::string> getParams(xercesc::DOMElement* qtestElement, std::string test);
43  bool checkParameters(std::string qtestName, std::string qtestType);
44 
45 
46 
47  private:
48  static int s_numberOfInstances;
49 
50  std::map<std::string, std::map<std::string, std::string> > testsRequested;
51  std::map<std::string, std::vector<std::string> > mapMonitorElementTests;
52  std::vector<std::string> testsToDisable;
53 
55 
56 
57 };
58 
59 
60 #endif
std::map< std::string, std::string > getParams(xercesc::DOMElement *qtestElement, std::string test)
bool parseQTestsConfiguration()
Methor that parses the xml file configFile, returns false if no errors are encountered.
bool checkParameters(std::string qtestName, std::string qtestType)
std::map< std::string, std::map< std::string, std::string > > testsList() const
Returns the Quality Tests list with their parameters obtained from the xml file.
std::vector< std::string > testsToDisable
std::map< std::string, std::vector< std::string > > meToTestsList() const
Returns the map between the MonitoElemnt and the list of tests requested for it.
QTestParameterNames * qtestParamNames
std::map< std::string, std::vector< std::string > > mapMonitorElementTests
std::map< std::string, std::map< std::string, std::string > > testsRequested