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 112 of file DDHtmlFormatter.h.

Constructor & Destructor Documentation

◆ DDNsGenerator()

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) {}

Member Function Documentation

◆ doit()

void DDNsGenerator::doit ( )

Definition at line 71 of file DDHtmlFormatter.cc.

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 }

References f.

Member Data Documentation

◆ n_

const ns_type& DDNsGenerator::n_
private

Definition at line 126 of file DDHtmlFormatter.h.

◆ os_

std::ostream& DDNsGenerator::os_
private

Definition at line 124 of file DDHtmlFormatter.h.

◆ target_

std::string DDNsGenerator::target_
private

Definition at line 125 of file DDHtmlFormatter.h.

◆ text_

std::string DDNsGenerator::text_
private

Definition at line 125 of file DDHtmlFormatter.h.

◆ title_

std::string DDNsGenerator::title_
private

Definition at line 125 of file DDHtmlFormatter.h.

DDHtmlFormatter
Definition: DDHtmlFormatter.h:17
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
DDNsGenerator::n_
const ns_type & n_
Definition: DDHtmlFormatter.h:126
DDNsGenerator::target_
std::string target_
Definition: DDHtmlFormatter.h:125
DDNsGenerator::os_
std::ostream & os_
Definition: DDHtmlFormatter.h:124
DDNsGenerator::text_
std::string text_
Definition: DDHtmlFormatter.h:125
overlapproblemtsosanalyzer_cfi.title
title
Definition: overlapproblemtsosanalyzer_cfi.py:7
filterCSVwithJSON.target
target
Definition: filterCSVwithJSON.py:32
runonSM.text
text
Definition: runonSM.py:43
DDNsGenerator::title_
std::string title_
Definition: DDHtmlFormatter.h:125