CMS 3D CMS Logo

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.

Member Function Documentation

void DDNsGenerator::doit ( )

Definition at line 79 of file DDHtmlFormatter.cc.

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

80 {
82  os_ << f.header(title_,"../style.css");
83  os_ << f.h2(title_) << f.p(text_);// << endl;
84  ns_type::const_iterator it = n_.begin();
85  ns_type::const_iterator ed = n_.end();
86  os_ << f.ul();
87  for (; it != ed; ++it) {
88  os_ << f.li(f.lnk(it->first + "/list.html" , it->first, target_));
89  }
90  os_ << f.ulEnd() << endl;
91  os_ << f.footer() << endl;
92 }
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.