#include <XHTMLMaker.h>
Public Types | |
typedef std::map< std::string, std::string > | AttrMap |
typedef xercesc::DOMElement | Node |
Public Member Functions | |
void | addBool (Node *parent, const bool &) |
void | addDouble (Node *parent, const double &value, const unsigned int &precision=2) |
void | addHex (Node *parent, const unsigned long &) |
void | addInt (Node *parent, const int &) |
void | addInt (Node *parent, const unsigned int &) |
void | addInt (Node *parent, const long &) |
void | addInt (Node *parent, const unsigned long &) |
void | addInt (Node *parent, const long long &) |
void | addInt (Node *parent, const unsigned long long &) |
Node * | addNode (const std::string &name, Node *parent, const AttrMap &attrs) |
Node * | addNode (const std::string &name, const AttrMap &attrs) |
Node * | addNode (const std::string &name, Node *parent) |
Node * | addNode (const std::string &name) |
void | addText (Node *parent, const std::string &) |
Node * | getHead () const |
void | out () |
void | out (const std::string &dest) |
void | out (std::string &dest) |
void | out (std::ostream &dest) |
Node * | start (const std::string &title) |
XHTMLMaker () | |
~XHTMLMaker () | |
Private Member Functions | |
void | setWriterFeatures_ () |
Private Attributes | |
xercesc::DOMDocument * | doc_ |
Node * | head_ |
bool | pageStarted_ |
xercesc::DOMDocumentType * | typ_ |
xercesc::DOMWriter * | writer_ |
Helper class to build XHTML pages
Definition at line 27 of file XHTMLMaker.h.
typedef std::map<std::string,std::string> stor::XHTMLMaker::AttrMap |
Definition at line 36 of file XHTMLMaker.h.
typedef xercesc::DOMElement stor::XHTMLMaker::Node |
Typedefs
Definition at line 35 of file XHTMLMaker.h.
XHTMLMaker::XHTMLMaker | ( | ) |
Constructor
Definition at line 37 of file XHTMLMaker.cc.
References dtNoiseDBValidation_cfg::cerr, fetchall_from_DQM_v2::release, s_id, and BeamSplash_cfg::version.
XHTMLMaker::~XHTMLMaker | ( | ) |
void XHTMLMaker::addBool | ( | Node * | parent, |
const bool & | value | ||
) |
Add a boolean
Definition at line 264 of file XHTMLMaker.cc.
void XHTMLMaker::addDouble | ( | Node * | parent, |
const double & | value, | ||
const unsigned int & | precision = 2 |
||
) |
Add a double
Definition at line 254 of file XHTMLMaker.cc.
References relativeConstraints::value.
Referenced by stor::SMWebPageHelper::addDOMforRunMonitor(), stor::SMWebPageHelper::addDOMforSummaryInformation(), stor::SMWebPageHelper::addFilterUnitList(), stor::SMWebPageHelper::addOutputModuleStatistics(), stor::SMWebPageHelper::addResourceBrokerDetails(), stor::SMWebPageHelper::addResourceBrokerList(), stor::SMWebPageHelper::addRowForBandwidth(), smproxy::SMPSWebPageHelper::addRowForEventServer(), smproxy::SMPSWebPageHelper::addRowForEventType(), stor::SMWebPageHelper::addRowForLatency(), stor::SMWebPageHelper::addRowForMaxBandwidth(), stor::SMWebPageHelper::addRowForMinBandwidth(), stor::SMWebPageHelper::addRowForRate(), stor::SMWebPageHelper::addRowForThroughputStatistics(), stor::SMWebPageHelper::addRowForTotalVolume(), stor::SMWebPageHelper::addRowsForThroughputUsage(), smproxy::SMPSWebPageHelper::addSummaryRowForEventServer(), smproxy::SMPSWebPageHelper::addSummaryRowForThroughput(), and stor::SMWebPageHelper::listStreamRecordsStats().
void XHTMLMaker::addHex | ( | Node * | parent, |
const unsigned long & | value | ||
) |
Add an unsigned long in hex format
Definition at line 244 of file XHTMLMaker.cc.
References relativeConstraints::value.
Referenced by stor::SMWebPageHelper::addDOMforFiles().
void XHTMLMaker::addInt | ( | Node * | parent, |
const int & | value | ||
) |
Add an int
Definition at line 184 of file XHTMLMaker.cc.
References relativeConstraints::value.
Referenced by smproxy::SMPSWebPageHelper::addDOMforConnectionInfo(), stor::SMWebPageHelper::addDOMforFiles(), stor::SMWebPageHelper::addDOMforRunMonitor(), stor::SMWebPageHelper::addFilterUnitList(), stor::SMWebPageHelper::addOutputModuleStatistics(), stor::SMWebPageHelper::addOutputModuleSummary(), stor::SMWebPageHelper::addResourceBrokerDetails(), stor::SMWebPageHelper::addResourceBrokerList(), stor::SMWebPageHelper::addRowForFramesReceived(), stor::SMWebPageHelper::addRowsForSataBeast(), stor::SMWebPageHelper::addRowsForWorkers(), and stor::SMWebPageHelper::listStreamRecordsStats().
void XHTMLMaker::addInt | ( | Node * | parent, |
const unsigned int & | value | ||
) |
Add an unsigned int
Definition at line 194 of file XHTMLMaker.cc.
References relativeConstraints::value.
void XHTMLMaker::addInt | ( | Node * | parent, |
const long & | value | ||
) |
Add a long
Definition at line 204 of file XHTMLMaker.cc.
References relativeConstraints::value.
void XHTMLMaker::addInt | ( | Node * | parent, |
const unsigned long & | value | ||
) |
Add an unsigned long
Definition at line 214 of file XHTMLMaker.cc.
References relativeConstraints::value.
void XHTMLMaker::addInt | ( | Node * | parent, |
const long long & | value | ||
) |
Add a long long
Definition at line 224 of file XHTMLMaker.cc.
References relativeConstraints::value.
void XHTMLMaker::addInt | ( | Node * | parent, |
const unsigned long long & | value | ||
) |
Add an unsigned long long
Definition at line 234 of file XHTMLMaker.cc.
References relativeConstraints::value.
XHTMLMaker::Node * XHTMLMaker::addNode | ( | const std::string & | name, |
XHTMLMaker::Node * | parent, | ||
const AttrMap & | attrs | ||
) |
Add child
Definition at line 146 of file XHTMLMaker.cc.
References i, and fetchall_from_DQM_v2::release.
Referenced by stor::SMWebPageHelper::addDOMforConfigString(), smproxy::SMPSWebPageHelper::addDOMforConnectionInfo(), smproxy::SMPSWebPageHelper::addDOMforEventServers(), stor::SMWebPageHelper::addDOMforFiles(), stor::SMWebPageHelper::addDOMforFragmentMonitor(), smproxy::SMPSWebPageHelper::addDOMforHyperLinks(), stor::SMWebPageHelper::addDOMforHyperLinks(), stor::SMWebPageHelper::addDOMforResourceUsage(), stor::SMWebPageHelper::addDOMforRunMonitor(), smproxy::SMPSWebPageHelper::addDOMforSMhost(), stor::SMWebPageHelper::addDOMforStoredData(), stor::SMWebPageHelper::addDOMforSummaryInformation(), smproxy::SMPSWebPageHelper::addDOMforThroughputPerEventType(), stor::SMWebPageHelper::addDOMforThroughputStatistics(), stor::SMWebPageHelper::addFilterUnitList(), stor::SMWebPageHelper::addFragmentStats(), addNode(), stor::SMWebPageHelper::addOutputModuleStatistics(), stor::SMWebPageHelper::addOutputModuleSummary(), stor::SMWebPageHelper::addResourceBrokerDetails(), stor::SMWebPageHelper::addResourceBrokerList(), stor::SMWebPageHelper::addRowForBandwidth(), smproxy::SMPSWebPageHelper::addRowForEventServer(), smproxy::SMPSWebPageHelper::addRowForEventType(), stor::SMWebPageHelper::addRowForFramesReceived(), stor::SMWebPageHelper::addRowForLatency(), stor::SMWebPageHelper::addRowForMaxBandwidth(), stor::SMWebPageHelper::addRowForMinBandwidth(), stor::SMWebPageHelper::addRowForRate(), stor::SMWebPageHelper::addRowForThroughputStatistics(), stor::SMWebPageHelper::addRowForTotalVolume(), stor::SMWebPageHelper::addRowsForSataBeast(), stor::SMWebPageHelper::addRowsForThroughputUsage(), stor::SMWebPageHelper::addRowsForWorkers(), smproxy::SMPSWebPageHelper::addSummaryRowForEventServer(), smproxy::SMPSWebPageHelper::addSummaryRowForThroughput(), stor::SMWebPageHelper::addTableForDiskUsages(), stor::SMWebPageHelper::addTableForResourceUsages(), smproxy::SMPSWebPageHelper::dataRetrieverWebPage(), smproxy::SMPSWebPageHelper::defaultWebPage(), stor::SMWebPageHelper::listStreamRecordsStats(), stor::SMWebPageHelper::resourceBrokerOverview(), and stor::SMWebPageHelper::storedDataWebPage().
Add child to top level
Definition at line 71 of file XHTMLMaker.h.
References addNode().
Add child without attributes
Definition at line 79 of file XHTMLMaker.h.
References addNode(), and relativeConstraints::empty.
|
inline |
Add child to top without attributes
Definition at line 88 of file XHTMLMaker.h.
References addNode().
void XHTMLMaker::addText | ( | Node * | parent, |
const std::string & | data | ||
) |
Add text
Definition at line 173 of file XHTMLMaker.cc.
References fetchall_from_DQM_v2::release.
Referenced by stor::SMWebPageHelper::addDOMforConfigString(), smproxy::SMPSWebPageHelper::addDOMforConnectionInfo(), smproxy::SMPSWebPageHelper::addDOMforEventServers(), stor::SMWebPageHelper::addDOMforFiles(), stor::SMWebPageHelper::addDOMforFragmentMonitor(), smproxy::SMPSWebPageHelper::addDOMforHyperLinks(), stor::SMWebPageHelper::addDOMforHyperLinks(), stor::SMWebPageHelper::addDOMforRunMonitor(), smproxy::SMPSWebPageHelper::addDOMforSMhost(), stor::SMWebPageHelper::addDOMforStoredData(), stor::SMWebPageHelper::addDOMforSummaryInformation(), smproxy::SMPSWebPageHelper::addDOMforThroughputPerEventType(), stor::SMWebPageHelper::addDOMforThroughputStatistics(), stor::SMWebPageHelper::addFilterUnitList(), stor::SMWebPageHelper::addFragmentStats(), stor::SMWebPageHelper::addOutputModuleStatistics(), stor::SMWebPageHelper::addOutputModuleSummary(), stor::SMWebPageHelper::addResourceBrokerDetails(), stor::SMWebPageHelper::addResourceBrokerList(), stor::SMWebPageHelper::addRowForBandwidth(), smproxy::SMPSWebPageHelper::addRowForEventServer(), smproxy::SMPSWebPageHelper::addRowForEventType(), stor::SMWebPageHelper::addRowForFramesReceived(), stor::SMWebPageHelper::addRowForLatency(), stor::SMWebPageHelper::addRowForMaxBandwidth(), stor::SMWebPageHelper::addRowForMinBandwidth(), stor::SMWebPageHelper::addRowForRate(), stor::SMWebPageHelper::addRowForThroughputStatistics(), stor::SMWebPageHelper::addRowForTotalVolume(), stor::SMWebPageHelper::addRowsForSataBeast(), stor::SMWebPageHelper::addRowsForThroughputUsage(), stor::SMWebPageHelper::addRowsForWorkers(), smproxy::SMPSWebPageHelper::addSummaryRowForThroughput(), stor::SMWebPageHelper::addTableForDiskUsages(), stor::SMWebPageHelper::addTableForResourceUsages(), and stor::SMWebPageHelper::listStreamRecordsStats().
|
inline |
void XHTMLMaker::out | ( | ) |
Dump the page to stdout
Definition at line 303 of file XHTMLMaker.cc.
Referenced by smproxy::SMPSWebPageHelper::dataRetrieverWebPage(), smproxy::SMPSWebPageHelper::defaultWebPage(), stor::SMWebPageHelper::defaultWebPage(), smproxy::SMPSWebPageHelper::dqmEventStatisticsWebPage(), stor::SMWebPageHelper::dqmEventWebPage(), stor::SMWebPageHelper::filesWebPage(), stor::SMWebPageHelper::inputWebPage(), stor::SMWebPageHelper::resourceBrokerDetail(), stor::SMWebPageHelper::resourceBrokerOverview(), stor::SMWebPageHelper::storedDataWebPage(), and stor::SMWebPageHelper::throughputWebPage().
void XHTMLMaker::out | ( | const std::string & | dest | ) |
Dump the page to a local file
Definition at line 315 of file XHTMLMaker.cc.
References fetchall_from_DQM_v2::release.
void XHTMLMaker::out | ( | std::string & | dest | ) |
void XHTMLMaker::out | ( | std::ostream & | dest | ) |
|
private |
XHTMLMaker::Node * XHTMLMaker::start | ( | const std::string & | title | ) |
Initialize page and return body element
Definition at line 101 of file XHTMLMaker.cc.
References dtNoiseDBValidation_cfg::cerr, h, and fetchall_from_DQM_v2::release.
Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
|
private |
Definition at line 166 of file XHTMLMaker.h.
|
private |
Definition at line 170 of file XHTMLMaker.h.
Referenced by getHead().
|
private |
Definition at line 172 of file XHTMLMaker.h.
|
private |
Definition at line 168 of file XHTMLMaker.h.
|
private |
Definition at line 167 of file XHTMLMaker.h.