CMS 3D CMS Logo

WebPage Class Reference

#include <DQM/TrackerCommon/interface/WebPage.h>

List of all members.

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


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.

00004 {
00005   url = the_url;
00006 }

WebPage::WebPage ( std::string  the_url  ) 


Member Function Documentation

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

void WebPage::clear ( void   ) 

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 }


Member Data Documentation

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

Definition at line 15 of file WebPage.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:53 2009 for CMSSW by  doxygen 1.5.4