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
DDNsGenerator Class Reference

#include <DDHtmlFormatter.h>

Public Member Functions

 DDNsGenerator (std::ostream &os, const std::string &title, const std::string &target, const ns_type &n, const std::string &text="")
 
void doit ()
 

Private Attributes

const ns_typen_
 
std::ostream & os_
 
std::string target_
 
std::string text_
 
std::string title_
 

Detailed Description

Generates HTML for DD-namespaces

Definition at line 69 of file DDHtmlFormatter.h.

Constructor & Destructor Documentation

DDNsGenerator::DDNsGenerator ( std::ostream &  os,
const std::string &  title,
const std::string &  target,
const ns_type n,
const std::string &  text = "" 
)
inline

Definition at line 73 of file DDHtmlFormatter.h.

78  : os_(os), title_(title), text_(text), target_(target), n_(n){ }
std::ostream & os_
std::string title_
tuple text
Definition: runonSM.py:42
const ns_type & n_
std::string target_
std::string text_

Member Function Documentation

void DDNsGenerator::doit ( )

Definition at line 65 of file DDHtmlFormatter.cc.

References f, DDHtmlFormatter::footer(), DDHtmlFormatter::h2(), DDHtmlFormatter::header(), DDHtmlFormatter::li(), DDHtmlFormatter::lnk(), DDHtmlFormatter::p(), DDHtmlFormatter::ul(), and DDHtmlFormatter::ulEnd().

66 {
68  os_ << f.header(title_,"../style.css");
69  os_ << f.h2(title_) << f.p(text_);// << endl;
70  ns_type::const_iterator it = n_.begin();
71  ns_type::const_iterator ed = n_.end();
72  os_ << f.ul();
73  for (; it != ed; ++it) {
74  os_ << f.li(f.lnk(it->first + "/list.html" , it->first, target_));
75  }
76  os_ << f.ulEnd() << endl;
77  os_ << f.footer() << endl;
78 }
DDHtmlFormatter li(const std::string &content)
std::ostream & os_
std::string title_
DDHtmlFormatter p(const std::string &content)
DDHtmlFormatter h2(const std::string &content)
double f[11][100]
DDHtmlFormatter ulEnd()
const ns_type & n_
std::string target_
DDHtmlFormatter header(const std::string &text, const std::string &style="../../style.css")
std::string lnk(const std::string &url, const std::string &text, const std::string &target="_self")
std::string text_
DDHtmlFormatter ul()
DDHtmlFormatter footer()

Member Data Documentation

const ns_type& DDNsGenerator::n_
private

Definition at line 86 of file DDHtmlFormatter.h.

std::ostream& DDNsGenerator::os_
private

Definition at line 84 of file DDHtmlFormatter.h.

std::string DDNsGenerator::target_
private

Definition at line 85 of file DDHtmlFormatter.h.

std::string DDNsGenerator::text_
private

Definition at line 85 of file DDHtmlFormatter.h.

std::string DDNsGenerator::title_
private

Definition at line 85 of file DDHtmlFormatter.h.