#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_type & | n_ |
std::ostream & | os_ |
std::string | target_ |
std::string | text_ |
std::string | title_ |
Generates HTML for DD-namespaces
Definition at line 69 of file DDHtmlFormatter.h.
DDNsGenerator::DDNsGenerator | ( | std::ostream & | os, |
const std::string & | title, | ||
const std::string & | target, | ||
const ns_type & | n, | ||
const std::string & | text = "" |
||
) | [inline] |
void DDNsGenerator::doit | ( | ) |
Definition at line 65 of file DDHtmlFormatter.cc.
References f, DDHtmlFormatter::footer(), DDHtmlFormatter::h2(), DDHtmlFormatter::header(), DDHtmlFormatter::li(), DDHtmlFormatter::lnk(), DDHtmlFormatter::p(), DDHtmlFormatter::ul(), and DDHtmlFormatter::ulEnd().
{ DDHtmlFormatter f; os_ << f.header(title_,"../style.css"); os_ << f.h2(title_) << f.p(text_);// << endl; ns_type::const_iterator it = n_.begin(); ns_type::const_iterator ed = n_.end(); os_ << f.ul(); for (; it != ed; ++it) { os_ << f.li(f.lnk(it->first + "/list.html" , it->first, target_)); } os_ << f.ulEnd() << endl; os_ << f.footer() << endl; }
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.