CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

stor::WebPageHelper< T > Class Template Reference

#include <WebPageHelper.h>

List of all members.

Public Member Functions

void css (xgi::Input *in, xgi::Output *out)
 WebPageHelper (xdaq::ApplicationDescriptor *, const std::string &cvsVersion, T *callee, void(T::*addHyperLinks)(XHTMLMaker &, XHTMLMaker::Node *) const )

Protected Member Functions

void addDOMforDQMEventStatistics (XHTMLMaker &maker, XHTMLMaker::Node *parent, DQMEventMonitorCollection const &) const
void addDOMforHyperLinks (XHTMLMaker &maker, XHTMLMaker::Node *parent) const
void addDOMforProcessedDQMEvents (XHTMLMaker &maker, XHTMLMaker::Node *parent, DQMEventMonitorCollection const &) const
void addDQMEventStats (XHTMLMaker &maker, XHTMLMaker::Node *table, DQMEventMonitorCollection::DQMEventStats const &, const MonitoredQuantity::DataSetType) const
void addDurationToTableHead (XHTMLMaker &maker, XHTMLMaker::Node *tableRow, const utils::Duration_t) const
void addRowForDQMEventBandwidth (XHTMLMaker &maker, XHTMLMaker::Node *table, DQMEventMonitorCollection::DQMEventStats const &, const MonitoredQuantity::DataSetType) const
void addRowForDQMEventsProcessed (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 addRowForMinDQMEventBandwidth (XHTMLMaker &maker, XHTMLMaker::Node *table, DQMEventMonitorCollection::DQMEventStats const &, const MonitoredQuantity::DataSetType) const
void addRowForTotalDQMEventVolume (XHTMLMaker &maker, XHTMLMaker::Node *table, DQMEventMonitorCollection::DQMEventStats const &, const MonitoredQuantity::DataSetType) const
std::string baseURL () const
XHTMLMaker::NodecreateWebPageBody (XHTMLMaker &, const std::string &pageTitle, const std::string &externallyVisibleState, const std::string &innerStateName, const std::string &errorMsg) const

Protected Attributes

std::map< unsigned int,
std::string > 
alarmColors_
xdaq::ApplicationDescriptor * appDescriptor_
XHTMLMaker::AttrMap rowAttr_
XHTMLMaker::AttrMap specialRowAttr_
XHTMLMaker::AttrMap tableAttr_
XHTMLMaker::AttrMap tableLabelAttr_
XHTMLMaker::AttrMap tableValueAttr_

Private Member Functions

WebPageHelperoperator= (WebPageHelper const &)
 WebPageHelper (WebPageHelper const &)

Private Attributes

void(T::* addHyperLinks_ )(XHTMLMaker &, XHTMLMaker::Node *) const
Tcallee_
evf::Css css_
const std::string cvsVersion_

Detailed Description

template<class T>
class stor::WebPageHelper< T >

Helper class to handle web page requests

Author:
mommsen
Revision:
1.13
Date:
2011/03/07 15:31:32

Definition at line 31 of file WebPageHelper.h.


Constructor & Destructor Documentation

template<class T>
stor::WebPageHelper< T >::WebPageHelper ( xdaq::ApplicationDescriptor *  ,
const std::string &  cvsVersion,
T callee,
void(T::*)(XHTMLMaker &, XHTMLMaker::Node *) const  addHyperLinks 
)
template<class T>
stor::WebPageHelper< T >::WebPageHelper ( WebPageHelper< T > const &  ) [private]

Member Function Documentation

template<class T>
void stor::WebPageHelper< T >::addDOMforDQMEventStatistics ( XHTMLMaker maker,
XHTMLMaker::Node parent,
DQMEventMonitorCollection const &   
) const [protected]

Adds statistics for the DQM events to the parent DOM element

template<class T>
void stor::WebPageHelper< T >::addDOMforHyperLinks ( XHTMLMaker maker,
XHTMLMaker::Node parent 
) const [inline, protected]

Adds the links for the other hyperdaq webpages

Reimplemented in smproxy::SMPSWebPageHelper, and stor::SMWebPageHelper.

Definition at line 72 of file WebPageHelper.h.

template<class T>
void stor::WebPageHelper< T >::addDOMforProcessedDQMEvents ( XHTMLMaker maker,
XHTMLMaker::Node parent,
DQMEventMonitorCollection const &   
) const [protected]

Adds DQM event processor statistics to the parent DOM element

template<class T>
void stor::WebPageHelper< T >::addDQMEventStats ( XHTMLMaker maker,
XHTMLMaker::Node table,
DQMEventMonitorCollection::DQMEventStats const &  ,
const MonitoredQuantity::DataSetType   
) const [protected]

Add statistics for processed DQM events

template<class T>
void stor::WebPageHelper< T >::addDurationToTableHead ( XHTMLMaker maker,
XHTMLMaker::Node tableRow,
const utils::Duration_t   
) const [protected]

Add header with integration duration

template<class T>
void stor::WebPageHelper< T >::addRowForDQMEventBandwidth ( XHTMLMaker maker,
XHTMLMaker::Node table,
DQMEventMonitorCollection::DQMEventStats const &  ,
const MonitoredQuantity::DataSetType   
) const [protected]

Add a table row for DQM event bandwidth

template<class T>
void stor::WebPageHelper< T >::addRowForDQMEventsProcessed ( XHTMLMaker maker,
XHTMLMaker::Node table,
DQMEventMonitorCollection::DQMEventStats const &  ,
const MonitoredQuantity::DataSetType   
) const [protected]

Add a table row for number of DQM events processed

template<class T>
void stor::WebPageHelper< T >::addRowForMaxDQMEventBandwidth ( XHTMLMaker maker,
XHTMLMaker::Node table,
DQMEventMonitorCollection::DQMEventStats const &  ,
const MonitoredQuantity::DataSetType   
) const [protected]

Add a table row for maximum fragment bandwidth

template<class T>
void stor::WebPageHelper< T >::addRowForMinDQMEventBandwidth ( XHTMLMaker maker,
XHTMLMaker::Node table,
DQMEventMonitorCollection::DQMEventStats const &  ,
const MonitoredQuantity::DataSetType   
) const [protected]

Add a table row for minimum fragment bandwidth

template<class T>
void stor::WebPageHelper< T >::addRowForTotalDQMEventVolume ( XHTMLMaker maker,
XHTMLMaker::Node table,
DQMEventMonitorCollection::DQMEventStats const &  ,
const MonitoredQuantity::DataSetType   
) const [protected]

Add a table row for total fragment volume received

template<class T>
std::string stor::WebPageHelper< T >::baseURL ( ) const [protected]

Get base url

template<class T>
XHTMLMaker::Node* stor::WebPageHelper< T >::createWebPageBody ( XHTMLMaker ,
const std::string &  pageTitle,
const std::string &  externallyVisibleState,
const std::string &  innerStateName,
const std::string &  errorMsg 
) const [protected]

Returns the webpage body with the standard header as XHTML node

Referenced by stor::SMWebPageHelper::createWebPageBody().

template<class T>
void stor::WebPageHelper< T >::css ( xgi::Input *  in,
xgi::Output *  out 
) [inline]

Create event filter style sheet

Definition at line 46 of file WebPageHelper.h.

    { css_.css(in,out); }
template<class T>
WebPageHelper& stor::WebPageHelper< T >::operator= ( WebPageHelper< T > const &  ) [private]

Member Data Documentation

template<class T>
void(T::* stor::WebPageHelper< T >::addHyperLinks_)(XHTMLMaker &, XHTMLMaker::Node *) const [private]
template<class T>
std::map<unsigned int, std::string> stor::WebPageHelper< T >::alarmColors_ [protected]

Definition at line 180 of file WebPageHelper.h.

template<class T>
xdaq::ApplicationDescriptor* stor::WebPageHelper< T >::appDescriptor_ [protected]
template<class T>
T* stor::WebPageHelper< T >::callee_ [private]
template<class T>
evf::Css stor::WebPageHelper< T >::css_ [private]

Definition at line 188 of file WebPageHelper.h.

Referenced by stor::WebPageHelper< WebPageHelper_t >::css().

template<class T>
const std::string stor::WebPageHelper< T >::cvsVersion_ [private]

Definition at line 189 of file WebPageHelper.h.

template<class T>
XHTMLMaker::AttrMap stor::WebPageHelper< T >::rowAttr_ [protected]

Definition at line 175 of file WebPageHelper.h.

template<class T>
XHTMLMaker::AttrMap stor::WebPageHelper< T >::specialRowAttr_ [protected]

Definition at line 178 of file WebPageHelper.h.

template<class T>
XHTMLMaker::AttrMap stor::WebPageHelper< T >::tableAttr_ [protected]

Definition at line 174 of file WebPageHelper.h.

template<class T>
XHTMLMaker::AttrMap stor::WebPageHelper< T >::tableLabelAttr_ [protected]

Definition at line 176 of file WebPageHelper.h.

template<class T>
XHTMLMaker::AttrMap stor::WebPageHelper< T >::tableValueAttr_ [protected]

Definition at line 177 of file WebPageHelper.h.