CMS 3D CMS Logo

QTestConfigurationParser.h
Go to the documentation of this file.
1 #ifndef QTestConfigurationParser_H
2 #define QTestConfigurationParser_H
3 
13 
14 #include <iostream>
15 #include <string>
16 #include <vector>
17 #include <map>
18 
20 
22 public:
26  ~QTestConfigurationParser() override;
30  std::map<std::string, std::map<std::string, std::string> > testsList() const { return testsRequested; }
32  std::map<std::string, std::vector<std::string> > meToTestsList() const { return mapMonitorElementTests; }
33 
34 private:
35  bool qtestsConfig();
37  std::map<std::string, std::string> getParams(xercesc::DOMElement* qtestElement, std::string test);
38  int instances() { return s_numberOfInstances; }
39  bool checkParameters(std::string qtestName, std::string qtestType);
40 
41 private:
42  static int s_numberOfInstances;
43 
44  std::map<std::string, std::map<std::string, std::string> > testsRequested;
45  std::map<std::string, std::vector<std::string> > mapMonitorElementTests;
46  std::vector<std::string> testsToDisable;
47 
49 };
50 
51 #endif
std::map< std::string, std::string > getParams(xercesc::DOMElement *qtestElement, std::string test)
~QTestConfigurationParser() override
Destructor.
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