Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DQM
TrackerCommon
src
WebPage.cc
Go to the documentation of this file.
1
#include "
DQM/TrackerCommon/interface/WebPage.h
"
2
3
WebPage::WebPage
(std::string the_url)
4
{
5
url
= the_url;
6
}
7
8
void
WebPage::add
(std::string
name
,
WebElement
* element_p)
9
{
10
element_map
[
name
] = element_p;
11
}
12
13
void
WebPage::remove
(
const
std::string
name
)
14
{
15
element_map
.erase(name);
16
}
17
18
void
WebPage::clear
()
19
{
20
element_map
.clear();
21
}
22
23
24
/************************************************/
25
// Print out the web page elements
26
27
void
WebPage::printHTML
(
xgi::Output
*
out
)
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
}
WebPage::element_map
std::map< std::string, WebElement * > element_map
Definition:
WebPage.h:15
WebPage::WebPage
WebPage(std::string the_url)
Definition:
WebPage.cc:3
WebPage::add
void add(std::string, WebElement *)
Definition:
WebPage.cc:8
WebElement
Definition:
WebElement.h:8
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
WebPage.h
WebPage::url
std::string url
Definition:
WebPage.h:14
WebPage::remove
void remove(std::string)
Definition:
WebPage.cc:13
dbtoconf.out
tuple out
Definition:
dbtoconf.py:99
WebPage::clear
void clear()
Definition:
WebPage.cc:18
Output
#define Output(cl)
Definition:
vmac.h:193
WebPage::printHTML
void printHTML(xgi::Output *out)
Definition:
WebPage.cc:27
Generated for CMSSW Reference Manual by
1.8.5