CbmRoot
Loading...
Searching...
No Matches
CbmTextReportElement.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2020 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Semen Lebedev, Andrey Lebedev [committer], Florian Uhlig */
4
11#ifndef CBMTEXTREPORTELEMENT_H_
12#define CBMTEXTREPORTELEMENT_H_
13
14#include "CbmReportElement.h" // for CbmReportElement
15
16#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
17#include <RtypesCore.h> // for Int_t
18
19#include <string> // for string
20#include <vector> // for vector
21
29public:
34
38 virtual ~CbmTextReportElement();
39
43 virtual std::string TableBegin(const std::string& caption, const std::vector<std::string>& colNames) const;
44
48 virtual std::string TableEnd() const;
49
53 virtual std::string TableEmptyRow(Int_t nofCols, const std::string& name) const;
54
58 virtual std::string TableRow(const std::vector<std::string>& row) const;
59
63 virtual std::string Image(const std::string& title, const std::string& file) const;
64
68 virtual std::string DocumentBegin() const;
69
73 virtual std::string DocumentEnd() const;
74
78 virtual std::string Title(Int_t size, const std::string& title) const;
79
80private:
81 std::string FormatCell(const std::string& cell) const;
82
83 Int_t fColW; // column width
84
85 ClassDef(CbmTextReportElement, 1)
86};
87
88#endif /* CBMTEXTREPORTELEMENT_H_ */
Abstract class for basic report elements (headers, tables, images etc.).
static constexpr size_t size()
Definition KfSimdPseudo.h:2
Abstract class for basic report elements (headers, tables, images etc.).
Implementation of CbmLitReportElement for text output.
virtual std::string Title(Int_t size, const std::string &title) const
Inherited from CbmReportElement.
virtual ~CbmTextReportElement()
Destructor.
virtual std::string TableRow(const std::vector< std::string > &row) const
Inherited from CbmReportElement.
virtual std::string Image(const std::string &title, const std::string &file) const
Inherited from CbmReportElement.
virtual std::string TableBegin(const std::string &caption, const std::vector< std::string > &colNames) const
Inherited from CbmReportElement.
virtual std::string TableEmptyRow(Int_t nofCols, const std::string &name) const
Inherited from CbmReportElement.
virtual std::string DocumentEnd() const
Inherited from CbmReportElement.
std::string FormatCell(const std::string &cell) const
virtual std::string TableEnd() const
Inherited from CbmReportElement.
virtual std::string DocumentBegin() const
Inherited from CbmReportElement.