CMS 3D CMS Logo

Public Member Functions | Private Attributes

DDNsGenerator Class Reference

#include <DDHtmlFormatter.h>

List of all members.

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

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

Member Function Documentation

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;
} 

Member Data Documentation

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.