CbmRoot
|
HTML document engine. More...
#include <CbmQaReportHtmlEngine.h>
Public Member Functions | |
std::string | FigureBody (const Figure &figure) const override |
Creates a body for figure. | |
std::string | HeaderBody (const Header &header) const override |
Creates a body for header. | |
std::string | SectionBody (const Section §ion) const override |
Creates a body for section. | |
std::string | TableBody (const Table &table) const override |
Creates a body for table. | |
std::string | TailBody (const Tail &tail) const override |
Creates a body for tail. | |
std::string | ScriptExtention () const override |
Returns script extention. | |
std::string | MyName () const override |
Returns engine name. | |
virtual void | Compile (const std::string &) const |
Defines the compilation rule (can be omitted) | |
Static Private Attributes | |
static constexpr double | kFigureWidth = 0.9 |
Figure width [in page width]. | |
static constexpr std::string_view | kTableTextAlign = "left" |
Table: align. | |
static constexpr int | kTablePadding = 4 |
Table: rows padding [px]. | |
HTML document engine.
Definition at line 21 of file CbmQaReportHtmlEngine.h.
|
inlinevirtualinherited |
Defines the compilation rule (can be omitted)
source | Path to the source |
Reimplemented in cbm::qa::report::BeamerEngine, and cbm::qa::report::LatexEngine.
Definition at line 66 of file CbmQaReportEngine.h.
Referenced by cbm::qa::report::Builder::CreateScript().
|
overridevirtual |
Creates a body for figure.
figure | Reference to figure |
Implements cbm::qa::report::Engine.
Definition at line 36 of file CbmQaReportHtmlEngine.cxx.
References cbm::qa::report::Figure::GetCaption(), cbm::qa::report::Element::GetLabel(), cbm::qa::report::Figure::GetPlots(), and kFigureWidth.
|
overridevirtual |
Creates a body for header.
header | Reference to header |
Implements cbm::qa::report::Engine.
Definition at line 53 of file CbmQaReportHtmlEngine.cxx.
References cbm::qa::report::Header::GetAuthor(), cbm::qa::report::Header::GetSetup(), cbm::qa::report::Header::GetSubtitle(), cbm::qa::report::Header::GetTitle(), kTablePadding, and kTableTextAlign.
|
inlineoverridevirtual |
Returns engine name.
Implements cbm::qa::report::Engine.
Definition at line 52 of file CbmQaReportHtmlEngine.h.
|
inlineoverridevirtual |
Returns script extention.
Implements cbm::qa::report::Engine.
Definition at line 49 of file CbmQaReportHtmlEngine.h.
|
overridevirtual |
Creates a body for section.
section | Reference to section |
Implements cbm::qa::report::Engine.
Definition at line 99 of file CbmQaReportHtmlEngine.cxx.
References cbm::qa::report::CollapsibleElement::GetDaughterElements(), cbm::qa::report::Section::GetLevel(), and cbm::qa::report::Element::GetTitle().
|
overridevirtual |
Creates a body for table.
table | Reference to table |
Implements cbm::qa::report::Engine.
Definition at line 115 of file CbmQaReportHtmlEngine.cxx.
References cbm::qa::report::Table::GetCaption(), cbm::qa::report::Table::GetColumnTitle(), cbm::qa::report::Table::GetNofCols(), and cbm::qa::report::Table::GetNofRows().
|
overridevirtual |
Creates a body for tail.
tail | Reference to tail |
Implements cbm::qa::report::Engine.
Definition at line 147 of file CbmQaReportHtmlEngine.cxx.
|
staticconstexprprivate |
Figure width [in page width].
Definition at line 56 of file CbmQaReportHtmlEngine.h.
Referenced by FigureBody().
|
staticconstexprprivate |
Table: rows padding [px].
Definition at line 58 of file CbmQaReportHtmlEngine.h.
Referenced by HeaderBody().
|
staticconstexprprivate |