CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
WebPage Class Reference

#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
 

Detailed Description

Definition at line 10 of file WebPage.h.

Constructor & Destructor Documentation

WebPage::WebPage ( std::string  the_url)

Definition at line 3 of file WebPage.cc.

References url.

4 {
5  url = the_url;
6 }
std::string url
Definition: WebPage.h:14

Member Function Documentation

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().

9 {
10  element_map[name] = element_p;
11 }
std::map< std::string, WebElement * > element_map
Definition: WebPage.h:15
void WebPage::clear ( void  )
void WebPage::printHTML ( xgi::Output out)

Definition at line 27 of file WebPage.cc.

References element_map.

28 {
29  std::map<std::string, WebElement *>::iterator it;
30 
31  *out << cgicc::body().set("onload", "fillDisplayList()") << std::endl;
32 
33  for (it = element_map.begin(); it != element_map.end(); it++)
34  {
35  it->second->printHTML(out);
36  }
37 
38  *out << cgicc::body() << std::endl;
39 }
std::map< std::string, WebElement * > element_map
Definition: WebPage.h:15
tuple out
Definition: dbtoconf.py:99
void WebPage::remove ( std::string  name)

Definition at line 13 of file WebPage.cc.

References element_map.

14 {
15  element_map.erase(name);
16 }
std::map< std::string, WebElement * > element_map
Definition: WebPage.h:15

Member Data Documentation

std::map<std::string, WebElement *> WebPage::element_map
private

Definition at line 15 of file WebPage.h.

Referenced by add(), clear(), printHTML(), and remove().

std::string WebPage::url
private

Definition at line 14 of file WebPage.h.

Referenced by WebPage().