CMS 3D CMS Logo

SummaryPlotXmlParser.h
Go to the documentation of this file.
1 #ifndef DQM_SiStripCommissioningClients_SummaryPlotXmlParser_H
2 #define DQM_SiStripCommissioningClients_SummaryPlotXmlParser_H
3 
8 #include <iostream>
9 #include <sstream>
10 #include <string>
11 #include <vector>
12 #include <map>
13 
15 
17 std::ostream& operator<<(std::ostream&, const SummaryPlotXmlParser&);
18 
26 public:
27  // ---------- Co(de)nstructors and consts ----------
28 
31 
33  ~SummaryPlotXmlParser() override { ; }
34 
35  // ---------- Public interface ----------
36 
38  void parseXML(const std::string& xml_file);
39 
41  std::vector<SummaryPlot> summaryPlots(const sistrip::RunType&);
42 
44  void print(std::stringstream&) const;
45 
46 private:
47  // ---------- Private member data ----------
48 
50  std::map<sistrip::RunType, std::vector<SummaryPlot> > plots_;
51 
52  // RunType tags and attributes
53  static const std::string rootTag_;
54  static const std::string runTypeTag_;
55  static const std::string runTypeAttr_;
56 
57  // SummaryPlot tags and attributes
61  static const std::string viewAttr_;
62  static const std::string levelAttr_;
64 };
65 
66 #endif // DQM_SiStripCommissioningClients_SummaryPlotXmlParser_H
static const std::string monitorableAttr_
static const std::string rootTag_
static const std::string runTypeTag_
static const std::string presentationAttr_
static const std::string runTypeAttr_
void parseXML(const std::string &xml_file)
static const std::string granularityAttr_
std::ostream & operator<<(std::ostream &, const SummaryPlotXmlParser &)
void print(std::stringstream &) const
Parses the "summary plot" xml configuration file.
static const std::string viewAttr_
std::map< sistrip::RunType, std::vector< SummaryPlot > > plots_
static const std::string summaryPlotTag_
std::vector< SummaryPlot > summaryPlots(const sistrip::RunType &)
static const std::string levelAttr_