CMS 3D CMS Logo

Public Member Functions | Private Attributes

WebPage Class Reference

#include <WebPage.h>

List of all members.

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.

{
  url = the_url;
}

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

{
  element_map[name] = element_p;
}
void WebPage::clear ( void  )

Definition at line 18 of file WebPage.cc.

References element_map.

{
  element_map.clear();
}
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)

Definition at line 13 of file WebPage.cc.

References element_map.

{
  element_map.erase(name);
}

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