CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 112 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 114 of file DDHtmlFormatter.h.

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

Member Function Documentation

void DDNsGenerator::doit ( )

Definition at line 71 of file DDHtmlFormatter.cc.

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

71  {
73  os_ << f.header(title_, "../style.css");
74  os_ << f.h2(title_) << f.p(text_); // << endl;
75  ns_type::const_iterator it = n_.begin();
76  ns_type::const_iterator ed = n_.end();
77  os_ << f.ul();
78  for (; it != ed; ++it) {
79  os_ << f.li(f.lnk(it->first + "/list.html", it->first, target_));
80  }
81  os_ << f.ulEnd() << endl;
82  os_ << f.footer() << endl;
83 }
DDHtmlFormatter li(const std::string &content)
std::ostream & os_
std::string title_
DDHtmlFormatter p(const std::string &content)
DDHtmlFormatter h2(const std::string &content)
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 126 of file DDHtmlFormatter.h.

std::ostream& DDNsGenerator::os_
private

Definition at line 124 of file DDHtmlFormatter.h.

std::string DDNsGenerator::target_
private

Definition at line 125 of file DDHtmlFormatter.h.

std::string DDNsGenerator::text_
private

Definition at line 125 of file DDHtmlFormatter.h.

std::string DDNsGenerator::title_
private

Definition at line 125 of file DDHtmlFormatter.h.