CbmRoot
|
Abstract class for basic report elements (headers, tables, images etc.). More...
#include <CbmReportElement.h>
Public Member Functions | |
CbmReportElement () | |
Constructor. More... | |
virtual | ~CbmReportElement () |
Destructor. More... | |
virtual std::string | TableBegin (const std::string &caption, const std::vector< std::string > &colNames) const =0 |
Return string with table open tag. More... | |
virtual std::string | TableEnd () const =0 |
Return string with table close tag. More... | |
virtual std::string | TableEmptyRow (int nofCols, const std::string &name) const =0 |
Return string with table row which spans over all columns. More... | |
virtual std::string | TableRow (const std::vector< std::string > &row) const =0 |
Return string with table row tags. More... | |
virtual std::string | Image (const std::string &title, const std::string &file) const =0 |
Return string with image tags. More... | |
virtual std::string | DocumentBegin () const =0 |
Return string with open tags for document. More... | |
virtual std::string | DocumentEnd () const =0 |
Return string with close tags of the document. More... | |
virtual std::string | Title (int size, const std::string &title) const =0 |
Return string with title. More... | |
Abstract class for basic report elements (headers, tables, images etc.).
Each concrete implementation for report elements has to implement this interface (e.g. Latex, text, HTML). Report has to be written using functionality of this interface class in order to be able to automatically produce reports in different representations (e.g. Latex, text, HTML).
Definition at line 32 of file CbmReportElement.h.
|
inline |
Constructor.
Definition at line 37 of file CbmReportElement.h.
|
inlinevirtual |
Destructor.
Definition at line 42 of file CbmReportElement.h.
|
pure virtual |
Return string with open tags for document.
Implemented in CbmTextReportElement, CbmHtmlReportElement, and CbmLatexReportElement.
Referenced by CbmStsDigitizeQaReport::Create(), CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitTofQaReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitClusteringQaStudyReport::Create(), CbmLitFitQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmLitRadLengthQaReport::Create(), CbmLitClusteringQaReport::Create(), CbmRichGeoTestStudyReport::Create(), and CbmLitTrackingQaStudyReport::Create().
|
pure virtual |
Return string with close tags of the document.
Implemented in CbmTextReportElement, CbmHtmlReportElement, and CbmLatexReportElement.
Referenced by CbmStsDigitizeQaReport::Create(), CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitTofQaReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitClusteringQaStudyReport::Create(), CbmLitFitQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmLitRadLengthQaReport::Create(), CbmLitClusteringQaReport::Create(), CbmRichGeoTestStudyReport::Create(), and CbmLitTrackingQaStudyReport::Create().
|
pure virtual |
Return string with image tags.
[in] | title | Title of the image. |
[in] | file | Name of the image file. |
Implemented in CbmTextReportElement, CbmHtmlReportElement, and CbmLatexReportElement.
Referenced by CbmReport::PrintCanvases().
|
pure virtual |
Return string with table open tag.
[in] | caption | Table caption. |
[in] | colNames | Names of the columns in table. |
Implemented in CbmTextReportElement, CbmHtmlReportElement, and CbmLatexReportElement.
Referenced by CbmLitFitQaReport::Create(), CbmRichGeoTestStudyReport::Create(), CbmLitTrackingQaStudyReport::PrintEfficiencyTable(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitClusteringQaStudyReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintNofObjects(), CbmLitClusteringQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitTrackingQaStudyReport::PrintTable(), CbmLitTrackingQaReport::PrintTrackHits(), and CbmLitTrackingQaReport::PrintTrackingEfficiency().
|
pure virtual |
Return string with table row which spans over all columns.
[in] | nofCols | number of columns in table. |
[in] | name | Name of the row. |
Implemented in CbmHtmlReportElement, and CbmLatexReportElement.
|
pure virtual |
Return string with table close tag.
Implemented in CbmTextReportElement, CbmHtmlReportElement, and CbmLatexReportElement.
Referenced by CbmLitFitQaReport::Create(), CbmRichGeoTestStudyReport::Create(), CbmLitTrackingQaStudyReport::PrintEfficiencyTable(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitClusteringQaStudyReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintNofObjects(), CbmLitClusteringQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitTrackingQaStudyReport::PrintTable(), CbmLitTrackingQaReport::PrintTrackHits(), and CbmLitTrackingQaReport::PrintTrackingEfficiency().
|
pure virtual |
Return string with table row tags.
[in] | data | Array of strings with data for each cell in a row. |
Implemented in CbmTextReportElement, CbmHtmlReportElement, and CbmLatexReportElement.
Referenced by CbmLitTrackingQaStudyReport::PrintEfficiencyTable(), CbmLitTrackingQaReport::PrintNofGhosts(), CbmLitClusteringQaStudyReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintNofObjects(), CbmLitClusteringQaReport::PrintNofObjects(), CbmLitTrackingQaReport::PrintPionSuppression(), CbmLitFitQaReport::PrintResAndPullRow(), CbmRichGeoTestStudyReport::PrintRow(), CbmLitTrackingQaStudyReport::PrintTable(), CbmLitTrackingQaReport::PrintTrackHits(), and CbmLitTrackingQaReport::PrintTrackingEfficiency().
|
pure virtual |
Return string with title.
[in] | size | Size of the title. [0-5]. 0 is the largest size. |
[in] | title | Title string. |
Implemented in CbmHtmlReportElement, and CbmLatexReportElement.
Referenced by CbmStsDigitizeQaReport::Create(), CbmAnaDielectronStudyReportAll::Create(), CbmAnaJpsiReport::Create(), CbmAnaJpsiSuperEventReport::Create(), CbmLitTofQaReport::Create(), CbmLitFieldApproximationQaReport::Create(), CbmLitFitQaStudyReport::Create(), CbmLitClusteringQaStudyReport::Create(), CbmLitFitQaReport::Create(), CbmLitTrackingQaReport::Create(), CbmLitRadLengthQaReport::Create(), CbmLitClusteringQaReport::Create(), CbmRichGeoTestStudyReport::Create(), and CbmLitTrackingQaStudyReport::Create().