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 
6 #include <iostream>
7 #include <sstream>
8 #include <string>
9 #include <vector>
10 #include <map>
11 #include <cassert>
12 #include <boost/property_tree/xml_parser.hpp>
13 #include <boost/property_tree/ptree.hpp>
14 
16 
18 std::ostream& operator<<(std::ostream&, const SummaryPlotXmlParser&);
19 
27 public:
28  // ---------- Co(de)nstructors and consts ----------
29 
32 
35 
36  // ---------- Public interface ----------
37 
39  void parseXML(const std::string& xml_file);
40 
42  std::vector<SummaryPlot> summaryPlots(const sistrip::RunType&);
43 
45  void print(std::stringstream&) const;
46 
47 private:
48  // ---------- Private member data ----------
49 
51  std::map<sistrip::RunType, std::vector<SummaryPlot> > plots_;
52 
53  // RunType tags and attributes
54  static const std::string rootTag_;
55  static const std::string runTypeTag_;
56  static const std::string runTypeAttr_;
57 
58  // SummaryPlot tags and attributes
62  static const std::string viewAttr_;
63  static const std::string levelAttr_;
65 };
66 
67 #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 &)
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_
void print(std::stringstream &) const