CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
WebPageHelper.h
Go to the documentation of this file.
1 // $Id: WebPageHelper.h,v 1.13 2011/03/07 15:31:32 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_WebPageHelper_h
5 #define EventFilter_StorageManager_WebPageHelper_h
6 
7 #include <map>
8 #include <string>
9 
10 #include "xdaq/ApplicationDescriptor.h"
11 #include "xgi/Input.h"
12 #include "xgi/Output.h"
13 
15 
18 
19 
20 namespace stor {
21 
30  template<class T>
32  {
33  public:
34 
36  (
37  xdaq::ApplicationDescriptor*,
38  const std::string& cvsVersion,
39  T* callee,
40  void (T::*addHyperLinks)(XHTMLMaker&, XHTMLMaker::Node*) const
41  );
42 
47  { css_.css(in,out); }
48 
49 
50  protected:
51 
55  std::string baseURL() const;
56 
61  (
62  XHTMLMaker&,
63  const std::string& pageTitle,
64  const std::string& externallyVisibleState,
65  const std::string& innerStateName,
66  const std::string& errorMsg
67  ) const;
68 
73  { (callee_->*addHyperLinks_)(maker, parent); }
74 
79  (
81  XHTMLMaker::Node* tableRow,
82  const utils::Duration_t
83  ) const;
84 
89  (
93  ) const;
94 
99  (
100  XHTMLMaker& maker,
103  ) const;
104 
108  void addDQMEventStats
109  (
110  XHTMLMaker& maker,
114  ) const;
115 
120  (
121  XHTMLMaker& maker,
125  ) const;
126 
131  (
132  XHTMLMaker& maker,
136  ) const;
137 
142  (
143  XHTMLMaker& maker,
147  ) const;
148 
153  (
154  XHTMLMaker& maker,
158  ) const;
159 
164  (
165  XHTMLMaker& maker,
169  ) const;
170 
171 
172  xdaq::ApplicationDescriptor* appDescriptor_;
173 
179 
180  std::map<unsigned int, std::string> alarmColors_;
181 
182  private:
183 
184  //Prevent copying of the WebPageHelper
187 
189  const std::string cvsVersion_;
192 
193  };
194 
195 } // namespace stor
196 
197 #endif // EventFilter_StorageManager_WebPageHelper_h
198 
199 
list table
Definition: asciidump.py:386
void addRowForMinDQMEventBandwidth(XHTMLMaker &maker, XHTMLMaker::Node *table, DQMEventMonitorCollection::DQMEventStats const &, const MonitoredQuantity::DataSetType) const
xdaq::ApplicationDescriptor * appDescriptor_
void addDOMforDQMEventStatistics(XHTMLMaker &maker, XHTMLMaker::Node *parent, DQMEventMonitorCollection const &) const
XHTMLMaker::AttrMap specialRowAttr_
#define Input(cl)
Definition: vmac.h:189
list parent
Definition: dbtoconf.py:74
void addDOMforHyperLinks(XHTMLMaker &maker, XHTMLMaker::Node *parent) const
Definition: WebPageHelper.h:72
XHTMLMaker::AttrMap tableValueAttr_
void addRowForDQMEventsProcessed(XHTMLMaker &maker, XHTMLMaker::Node *table, DQMEventMonitorCollection::DQMEventStats const &, const MonitoredQuantity::DataSetType) const
void css(xgi::Input *in, xgi::Output *out)
Definition: WebPageHelper.h:46
std::string baseURL() const
XHTMLMaker::AttrMap tableLabelAttr_
boost::posix_time::time_duration Duration_t
Definition: Utils.h:41
void addRowForTotalDQMEventVolume(XHTMLMaker &maker, XHTMLMaker::Node *table, DQMEventMonitorCollection::DQMEventStats const &, const MonitoredQuantity::DataSetType) const
void addRowForMaxDQMEventBandwidth(XHTMLMaker &maker, XHTMLMaker::Node *table, DQMEventMonitorCollection::DQMEventStats const &, const MonitoredQuantity::DataSetType) const
void addDurationToTableHead(XHTMLMaker &maker, XHTMLMaker::Node *tableRow, const utils::Duration_t) const
std::map< std::string, std::string > AttrMap
Definition: XHTMLMaker.h:36
void css(xgi::Input *in, xgi::Output *out)
Definition: Css.h:15
WebPageHelper(xdaq::ApplicationDescriptor *, const std::string &cvsVersion, T *callee, void(T::*addHyperLinks)(XHTMLMaker &, XHTMLMaker::Node *) const )
Definition: Css.h:12
XHTMLMaker::AttrMap tableAttr_
void addDOMforProcessedDQMEvents(XHTMLMaker &maker, XHTMLMaker::Node *parent, DQMEventMonitorCollection const &) const
tuple out
Definition: dbtoconf.py:99
void(T::* addHyperLinks_)(XHTMLMaker &, XHTMLMaker::Node *) const
void addRowForDQMEventBandwidth(XHTMLMaker &maker, XHTMLMaker::Node *table, DQMEventMonitorCollection::DQMEventStats const &, const MonitoredQuantity::DataSetType) const
std::map< unsigned int, std::string > alarmColors_
void addDQMEventStats(XHTMLMaker &maker, XHTMLMaker::Node *table, DQMEventMonitorCollection::DQMEventStats const &, const MonitoredQuantity::DataSetType) const
#define Output(cl)
Definition: vmac.h:193
const std::string cvsVersion_
WebPageHelper & operator=(WebPageHelper const &)
xercesc::DOMElement Node
Definition: XHTMLMaker.h:35
XHTMLMaker::Node * createWebPageBody(XHTMLMaker &, const std::string &pageTitle, const std::string &externallyVisibleState, const std::string &innerStateName, const std::string &errorMsg) const
long double T
XHTMLMaker::AttrMap rowAttr_