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 
14 
15 #include<iostream>
16 #include<string>
17 #include<vector>
18 #include<map>
19 
21 
23 
24  public:
32  std::map<std::string, std::map<std::string, std::string> > testsList() const { return testsRequested;}
34  std::map<std::string, std::vector<std::string> > meToTestsList() const { return mapMonitorElementTests;}
35 
36  private:
37  bool qtestsConfig();
39  std::map<std::string, std::string> getParams(xercesc::DOMElement* qtestElement, std::string test);
41  bool checkParameters(std::string qtestName, std::string qtestType);
42 
43 
44 
45  private:
46  static int s_numberOfInstances;
47 
48  std::map<std::string, std::map<std::string, std::string> > testsRequested;
49  std::map<std::string, std::vector<std::string> > mapMonitorElementTests;
50  std::vector<std::string> testsToDisable;
51 
53 
54 
55 };
56 
57 
58 #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