pxar
 All Classes Namespaces Functions Variables Typedefs Friends
PixTestParameters.hh
1 #ifndef PIXTESTPARAMETERS
2 #define PIXTESTPARAMETERS
3 
4 #include "pxardllexport.h"
5 
6 #include <map>
7 #include <vector>
8 
9 class DLLEXPORT PixTestParameters {
10 
11 public:
12 
13  PixTestParameters(std::string file, bool verbose = false);
14  bool readTestParameterFile(std::string file, bool verbose);
15  std::vector<std::pair<std::string, std::string> > getTestParameters(std::string testName);
16  bool setTestParameter(std::string testname, std::string parname, std::string value);
17  bool addTestParameter(std::string testname, std::string parname, std::string value);
18  bool setTestParameters(std::string testname, std::vector<std::pair<std::string, std::string> > );
19  bool setTestParameters(std::string testname, std::string testParameters);
20  std::vector<std::pair<std::string, std::string> > splitStringIntoParameters(std::string testParameters);
21  std::vector<std::string> getTests();
22  void dump();
23 
24  void replaceAll(std::string& str, const std::string& from, const std::string& to);
25 
26 private:
27  std::map<std::string, std::vector<std::pair<std::string, std::string> > > fTests;
28 
29 };
30 
31 #endif