Table element in the report.
More...
#include <CbmQaReportTable.h>
|
| | Table (std::string_view label, std::string_view title="") |
| | Constructor.
|
| |
| | Table (std::string_view label, int nRows, int nCols, std::string_view title="") |
| | Constructor.
|
| |
| virtual | ~Table () |
| | Destructor.
|
| |
| const std::string & | operator() (int iRow, int iCol) const |
| | Cell access operator.
|
| |
| std::string & | operator() (int iRow, int iCol) |
| | Cell access operator.
|
| |
| std::string | GetBody (const Engine &engine) const override |
| | Gets body of the element.
|
| |
| const std::string & | GetCaption () const |
| | Gets caption.
|
| |
| const std::string & | GetCell (int iRow, int iCol) const |
| | Gets cell.
|
| |
| const std::string & | GetColumnTitle (int iCol) const |
| | Gets column title.
|
| |
| int | GetNofRows () const |
| | Gets number of rows.
|
| |
| int | GetNofCols () const |
| | Gets number of columns.
|
| |
| void | SetCaption (std::string_view caption) |
| | Sets caption.
|
| |
| void | Set (const CbmQaTable *pQaTable, const std::string &cellFormat=std::string(kDefaultFormat)) |
| | Sets a table from CbmQaTable.
|
| |
| void | SetCell (int iRow, int iCol, std::string_view cell) |
| | Sets cell.
|
| |
| void | SetColumnTitle (int iCol, std::string_view title) |
| | Sets column title.
|
| |
| virtual std::string | GetBody (const Engine &engine) const =0 |
| | Gets body of the element.
|
| |
| const std::string & | GetLabel () const |
| | Gets label.
|
| |
| const std::string & | GetTitle () const |
| | Gets name.
|
| |
| void | SetLabel (std::string_view label) |
| | Sets label.
|
| |
| void | SetTitle (std::string_view title) |
| | Sets name.
|
| |
| const Element * | GetMother () const |
| | Gets mother element.
|
| |
|
| int | GetIndex (int iRow, int iCol) const |
| | Gets index of cell in the table vector.
|
| |
|
| static constexpr std::string_view | kDefaultFormat = "{:.3}" |
| | Default format of double entries.
|
| |
Table element in the report.
Definition at line 21 of file CbmQaReportTable.h.
◆ Table() [1/2]
| Table::Table |
( |
std::string_view | label, |
|
|
std::string_view | title = "" ) |
|
explicit |
Constructor.
- Parameters
-
| label | Label of the element |
| title | Title |
Definition at line 22 of file CbmQaReportTable.cxx.
◆ Table() [2/2]
| Table::Table |
( |
std::string_view | label, |
|
|
int | nRows, |
|
|
int | nCols, |
|
|
std::string_view | title = "" ) |
Constructor.
- Parameters
-
| label | Label of the element |
| nRows | Number of rows |
| nCols | Number of columns |
| title | Title |
Definition at line 26 of file CbmQaReportTable.cxx.
◆ ~Table()
| virtual cbm::qa::report::Table::~Table |
( |
| ) |
|
|
inlinevirtual |
◆ AssignMother()
| void cbm::qa::report::Element::AssignMother |
( |
const Element * | pMother | ) |
|
|
inlineprivateinherited |
◆ GetBody() [1/2]
| virtual std::string cbm::qa::report::Element::GetBody |
( |
const Engine & | engine | ) |
const |
|
pure virtualinherited |
◆ GetBody() [2/2]
| std::string cbm::qa::report::Table::GetBody |
( |
const Engine & | engine | ) |
const |
|
inlineoverride |
Gets body of the element.
- Parameters
-
| engine | A concrete implementation of the Engine to get the element body |
Definition at line 53 of file CbmQaReportTable.h.
◆ GetCaption()
| const std::string & cbm::qa::report::Table::GetCaption |
( |
| ) |
const |
|
inline |
◆ GetCell()
| const std::string & cbm::qa::report::Table::GetCell |
( |
int | iRow, |
|
|
int | iCol ) const |
|
inline |
Gets cell.
- Parameters
-
| iRow | Index of row |
| iCol | Index of column |
Definition at line 61 of file CbmQaReportTable.h.
◆ GetColumnTitle()
| const std::string & cbm::qa::report::Table::GetColumnTitle |
( |
int | iCol | ) |
const |
|
inline |
◆ GetIndex()
| int cbm::qa::report::Table::GetIndex |
( |
int | iRow, |
|
|
int | iCol ) const |
|
inlineprotected |
◆ GetLabel()
| const std::string & cbm::qa::report::Element::GetLabel |
( |
| ) |
const |
|
inlineinherited |
◆ GetMother()
| const Element * cbm::qa::report::Element::GetMother |
( |
| ) |
const |
|
inlineinherited |
◆ GetNofCols()
| int cbm::qa::report::Table::GetNofCols |
( |
| ) |
const |
|
inline |
◆ GetNofRows()
| int cbm::qa::report::Table::GetNofRows |
( |
| ) |
const |
|
inline |
◆ GetTitle()
| const std::string & cbm::qa::report::Element::GetTitle |
( |
| ) |
const |
|
inlineinherited |
◆ operator()() [1/2]
| std::string & cbm::qa::report::Table::operator() |
( |
int | iRow, |
|
|
int | iCol ) |
|
inline |
◆ operator()() [2/2]
| const std::string & cbm::qa::report::Table::operator() |
( |
int | iRow, |
|
|
int | iCol ) const |
|
inline |
◆ Set()
Sets a table from CbmQaTable.
- Parameters
-
| pQaTable | Pointer to the QA-table object |
| cellFormat | Defines format of the rows in fmt::format formating scheme |
The parameter format provides ether a common format for all cells of the CbmQaTabl, or individual formats for each column (excluding the first row, if it is defined with the QA-table row names). For latter one have to pass a sequence of the formats, separated by the bar symbol: "<format_0>|<format_1>|<...>|<format_n>". Each of the <format_i> entries represents a fmt::format formatting line. For example, "{:.2}" formats a double into two digits after floating point, "{:.2e}" converts the number in the scientific format.
Definition at line 39 of file CbmQaReportTable.cxx.
◆ SetCaption()
| void cbm::qa::report::Table::SetCaption |
( |
std::string_view | caption | ) |
|
|
inline |
◆ SetCell()
| void cbm::qa::report::Table::SetCell |
( |
int | iRow, |
|
|
int | iCol, |
|
|
std::string_view | cell ) |
|
inline |
◆ SetColumnTitle()
| void cbm::qa::report::Table::SetColumnTitle |
( |
int | iCol, |
|
|
std::string_view | title ) |
|
inline |
◆ SetLabel()
| void cbm::qa::report::Element::SetLabel |
( |
std::string_view | label | ) |
|
|
inlineinherited |
◆ SetTitle()
| void cbm::qa::report::Element::SetTitle |
( |
std::string_view | title | ) |
|
|
inlineinherited |
◆ fNofCols
| int cbm::qa::report::Table::fNofCols = 0 |
|
private |
◆ fNofRows
| int cbm::qa::report::Table::fNofRows = 0 |
|
private |
◆ fpMother
| const Element* cbm::qa::report::Element::fpMother = nullptr |
|
privateinherited |
◆ fsCaption
| std::string cbm::qa::report::Table::fsCaption = "" |
|
private |
◆ fsLabel
| std::string cbm::qa::report::Element::fsLabel = "" |
|
privateinherited |
◆ fsTitle
| std::string cbm::qa::report::Element::fsTitle = "" |
|
privateinherited |
◆ fvsTable
| std::vector<std::string> cbm::qa::report::Table::fvsTable |
|
private |
◆ fvsTableHeader
| std::vector<std::string> cbm::qa::report::Table::fvsTableHeader |
|
private |
◆ kDefaultFormat
| std::string_view cbm::qa::report::Table::kDefaultFormat = "{:.3}" |
|
staticconstexprprivate |
The documentation for this class was generated from the following files: