#include <iostream>
#include <string>
#include <sstream>
#include <map>
#include <set>
#include <vector>
#include "DetectorDescription/RegressionTest/interface/DDErrorDetection.h"
Go to the source code of this file.
void dd_html_frameset |
( |
std::ostream & |
os | ) |
|
void dd_html_menu |
( |
std::ostream & |
os | ) |
|
void dd_html_menu_frameset |
( |
std::ostream & |
os | ) |
|
Definition at line 304 of file DDHtmlFormatter.cc.
References DDHtmlDetails::category(), gather_cfg::cout, DDHtmlDetails::details(), dir, f, alignmentValidation::fname, eostools::mkdir(), DDHtmlDetails::names(), mps_fire::result, and DDHtmlDetails::text().
Referenced by DDHtmlSpDetails::DDHtmlSpDetails().
306 cout <<
"---> dd_to_html() called with category=" << dtls.category() << endl;
307 const string &
category = dtls.category();
308 const string &
text = dtls.text();
311 mkdir( category.c_str(), 0755 );
314 string ns_fname = category +
"/ns.html";
315 ofstream ns_file(ns_fname.c_str());
321 ns_type::const_iterator it(names.begin()), ed(names.end());
322 for( ; it != ed; ++it ) {
324 const string & ns = it->first;
327 string dir = category +
"/" + ns;
328 mkdir( dir.c_str(), 0755 );
331 string fname = category +
"/" + ns +
"/list.html";
332 ofstream list_file(fname.c_str());
334 list_file << f.header(text)
335 << f.p(
"Instances in Namespace <b>" + ns +
"</b><br>");
338 set<string>::const_iterator nit(it->second.begin()), ned(it->second.end());
339 for(; nit != ned; ++nit) {
341 const string & nm = *nit;
342 string result_s = nm;
345 string d_fname = category +
"/" + ns +
"/" + nm +
".html";
346 ofstream detail_file(d_fname.c_str());
348 bool result = dtls.details(detail_file, an);
350 if (!result) result_s =
">> ERROR: " + nm +
" <<";
351 list_file << f.li(f.lnk(nm+
".html", result_s,
"_details"));
354 list_file << f.ulEnd() << f.footer();
static const HistoName names[]
DDName is used to identify DDD entities uniquely.
std::map< std::string, std::set< std::string > > ns_type