#include <DetectorDescription/RegressionTest/interface/DDHtmlFormatter.h>
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_type & | n_ |
std::ostream & | os_ |
std::string | target_ |
std::string | text_ |
std::string | title_ |
Definition at line 68 of file DDHtmlFormatter.h.
DDNsGenerator::DDNsGenerator | ( | ostream & | os, | |
const string & | title, | |||
const string & | target, | |||
const ns_type & | n, | |||
const string & | text = "" | |||
) | [inline] |
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 }
const ns_type& DDNsGenerator::n_ [private] |
std::ostream& DDNsGenerator::os_ [private] |
std::string DDNsGenerator::target_ [private] |
std::string DDNsGenerator::text_ [private] |
std::string DDNsGenerator::title_ [private] |