#include <DQM/TrackerCommon/interface/WebPage.h>
Public Member Functions | |
void | add (std::string, WebElement *) |
void | add (std::string, WebElement *) |
void | clear () |
void | clear () |
void | printHTML (xgi::Output *out) |
void | printHTML (xgi::Output *out) |
void | remove (std::string) |
void | remove (std::string) |
WebPage (std::string the_url) | |
WebPage (std::string the_url) | |
Private Attributes | |
std::map< std::string, WebElement * > | element_map |
std::map< std::string, WebElement * > | element_map |
std::string | url |
Definition at line 10 of file WebPage.h.
WebPage::WebPage | ( | std::string | the_url | ) |
WebPage::WebPage | ( | std::string | the_url | ) |
void WebPage::add | ( | std::string | , | |
WebElement * | ||||
) |
void WebPage::add | ( | std::string | name, | |
WebElement * | element_p | |||
) |
Definition at line 8 of file WebPage.cc.
References element_map.
Referenced by WebInterface::add(), SiPixelHistoricInfoWebInterface::SiPixelHistoricInfoWebInterface(), and SiStripHistoricInfoWebInterface::SiStripHistoricInfoWebInterface().
00009 { 00010 element_map[name] = element_p; 00011 }
void WebPage::clear | ( | ) |
Definition at line 18 of file WebPage.cc.
References element_map.
00019 { 00020 element_map.clear(); 00021 }
void WebPage::printHTML | ( | xgi::Output * | out | ) |
void WebPage::printHTML | ( | xgi::Output * | out | ) |
Definition at line 27 of file WebPage.cc.
References alivecheck_mergeAndRegister::body, element_map, lat::endl(), and it.
Referenced by WebInterface::Default().
00028 { 00029 std::map<std::string, WebElement *>::iterator it; 00030 00031 *out << cgicc::body().set("onload", "fillDisplayList()") << std::endl; 00032 00033 for (it = element_map.begin(); it != element_map.end(); it++) 00034 { 00035 it->second->printHTML(out); 00036 } 00037 00038 *out << cgicc::body() << std::endl; 00039 }
void WebPage::remove | ( | std::string | ) |
void WebPage::remove | ( | std::string | name | ) |
Definition at line 13 of file WebPage.cc.
References element_map.
00014 { 00015 element_map.erase(name); 00016 }
std::map<std::string, WebElement *> WebPage::element_map [private] |
std::map<std::string, WebElement *> WebPage::element_map [private] |
std::string WebPage::url [private] |