CMS 3D CMS Logo

DDNsGenerator Class Reference

Generates HTML for DD-namespaces. More...

#include <DetectorDescription/RegressionTest/interface/DDHtmlFormatter.h>

List of all members.

Public Member Functions

 DDNsGenerator (ostream &os, const string &title, const string &target, const ns_type &n, const 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 68 of file DDHtmlFormatter.h.


Constructor & Destructor Documentation

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

Definition at line 72 of file DDHtmlFormatter.h.

00077  : os_(os), title_(title), text_(text), target_(target), n_(n){ }


Member Function Documentation

void DDNsGenerator::doit (  ) 

Definition at line 55 of file DDHtmlFormatter.cc.

References lat::endl(), f, DDHtmlFormatter::footer(), DDHtmlFormatter::h2(), DDHtmlFormatter::header(), it, DDHtmlFormatter::li(), DDHtmlFormatter::lnk(), n_, os_, DDHtmlFormatter::p(), target_, text_, title_, DDHtmlFormatter::ul(), and DDHtmlFormatter::ulEnd().

00056 {  
00057   DDHtmlFormatter f;
00058   os_ << f.header(title_,"../style.css");
00059   os_ << f.h2(title_) << f.p(text_);// << endl;
00060   ns_type::const_iterator it = n_.begin(); 
00061   ns_type::const_iterator ed = n_.end(); 
00062   os_ << f.ul();
00063   for (; it != ed; ++it) {
00064     os_ << f.li(f.lnk(it->first + "/list.html"  , it->first, target_));
00065   }
00066   os_ << f.ulEnd() << endl;
00067   os_ << f.footer() << endl;
00068 } 


Member Data Documentation

const ns_type& DDNsGenerator::n_ [private]

Definition at line 85 of file DDHtmlFormatter.h.

Referenced by doit().

std::ostream& DDNsGenerator::os_ [private]

Definition at line 83 of file DDHtmlFormatter.h.

Referenced by doit().

std::string DDNsGenerator::target_ [private]

Definition at line 84 of file DDHtmlFormatter.h.

Referenced by doit().

std::string DDNsGenerator::text_ [private]

Definition at line 84 of file DDHtmlFormatter.h.

Referenced by doit().

std::string DDNsGenerator::title_ [private]

Definition at line 84 of file DDHtmlFormatter.h.

Referenced by doit().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:18:11 2009 for CMSSW by  doxygen 1.5.4