Go to the documentation of this file.
13 using std::stringstream;
21 const vector<string>& colNames)
const {
23 ss <<
"<h2>" << caption <<
"</h2>";
24 ss <<
"<table id=\"efficiency\" >" << endl;
26 for (
unsigned int i = 0;
i < colNames.size();
i++) {
27 ss <<
"<th>" << colNames[
i] <<
"</th>";
29 ss <<
"</tr>" << endl;
36 const string& name)
const {
38 ss <<
"<td colspan=\"" << nofCols <<
"\"><center><b>" << name
39 <<
"</b></center></td></tr>" << endl;
45 for (
unsigned int i = 0;
i < row.size();
i++) {
46 st +=
"<td>" + row[
i] +
"</td>";
53 const string& file)
const {
55 ss <<
"<h3>" << title <<
"</h3>";
56 ss <<
"<img src=\"" << file <<
".png\" alt=\"" << title <<
"\" />";
62 string str =
"<html><body><head><style type=\"text/css\">";
65 str +=
"font-family:Verdana, Arial, Helvetica, sans-serif;";
67 str +=
"border-collapse:collapse;";
69 str +=
"#efficiency td, #efficiency th";
71 str +=
"font-size:1em;";
72 str +=
"border:1px solid #98bf21;";
73 str +=
"padding:3px 7px 2px 7px;";
75 str +=
"#efficiency th";
77 str +=
"font-size:1.1em;";
78 str +=
"text-align:left;";
79 str +=
"padding-top:5px;";
80 str +=
"padding-bottom:4px;";
81 str +=
"background-color:#A7C942;";
82 str +=
"color:#ffffff;";
84 str +=
"#efficiency tr.alt td";
86 str +=
"color:#000000;";
87 str +=
"background-color:#EAF2D3;";
89 str +=
"</style></head>";
97 ss <<
"<h" << size + 1 <<
">" << title <<
"</h" << size + 1 <<
">";
virtual ~CbmHtmlReportElement()
Destructor.
virtual std::string DocumentBegin() const
Inherited from CbmReportElement.
CbmHtmlReportElement()
Constructor.
virtual std::string TableEmptyRow(int nofCols, const std::string &name) const
Inherited from CbmReportElement.
virtual std::string Title(int size, const std::string &title) const
Inherited from CbmReportElement.
Implementation of CbmReportElement for HTML output.
virtual std::string TableRow(const std::vector< std::string > &row) const
Inherited from CbmReportElement.
virtual std::string TableBegin(const std::string &caption, const std::vector< std::string > &colNames) const
Inherited from CbmReportElement.
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
virtual std::string Image(const std::string &title, const std::string &file) const
Inherited from CbmReportElement.
virtual std::string DocumentEnd() const
Inherited from CbmReportElement.
Implementation of CbmReportElement for text output.
virtual std::string TableEnd() const
Inherited from CbmReportElement.