#include <WebPage.h>
Public Member Functions | |
void | add (std::string, WebElement *) |
void | clear () |
void | printHTML (xgi::Output *out) |
void | remove (std::string) |
WebPage (std::string the_url) | |
Private Attributes | |
std::map< std::string, WebElement * > | element_map |
std::string | url |
WebPage::WebPage | ( | std::string | the_url | ) |
void WebPage::add | ( | std::string | name, |
WebElement * | element_p | ||
) |
Definition at line 8 of file WebPage.cc.
References element_map, and mergeVDriftHistosByStation::name.
Referenced by WebInterface::add().
{ element_map[name] = element_p; }
void WebPage::clear | ( | void | ) |
void WebPage::printHTML | ( | xgi::Output * | out | ) |
Definition at line 27 of file WebPage.cc.
References element_map.
{ std::map<std::string, WebElement *>::iterator it; *out << cgicc::body().set("onload", "fillDisplayList()") << std::endl; for (it = element_map.begin(); it != element_map.end(); it++) { it->second->printHTML(out); } *out << cgicc::body() << std::endl; }
void WebPage::remove | ( | std::string | name | ) |
std::map<std::string, WebElement *> WebPage::element_map [private] |
std::string WebPage::url [private] |