CbmRoot
Loading...
Searching...
No Matches
CbmReportElement.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 CBMREPORTELEMENT_H_
12#define CBMREPORTELEMENT_H_
13
14#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
15#include <TObject.h> // for TObject
16
17#include <string> // for string
18#include <vector> // for vector
19
20
36class CbmReportElement : public TObject {
37public:
42
46 virtual ~CbmReportElement() {}
47
54 virtual std::string TableBegin(const std::string& caption, const std::vector<std::string>& colNames) const = 0;
55
60 virtual std::string TableEnd() const = 0;
61
68 virtual std::string TableEmptyRow(int nofCols, const std::string& name) const = 0;
69
75 virtual std::string TableRow(const std::vector<std::string>& row) const = 0;
76
83 virtual std::string Image(const std::string& title, const std::string& file) const = 0;
84
89 virtual std::string DocumentBegin() const = 0;
90
95 virtual std::string DocumentEnd() const = 0;
96
103 virtual std::string Title(int size, const std::string& title) const = 0;
104
105 ClassDef(CbmReportElement, 1)
106};
107
108#endif /* CBMREPORTELEMENT_H_ */
static constexpr size_t size()
Definition KfSimdPseudo.h:2
Abstract class for basic report elements (headers, tables, images etc.).
virtual std::string TableRow(const std::vector< std::string > &row) const =0
Return string with table row tags.
CbmReportElement()
Constructor.
virtual std::string Image(const std::string &title, const std::string &file) const =0
Return string with image tags.
virtual std::string Title(int size, const std::string &title) const =0
Return string with title.
virtual ~CbmReportElement()
Destructor.
virtual std::string TableEmptyRow(int nofCols, const std::string &name) const =0
Return string with table row which spans over all columns.
virtual std::string TableBegin(const std::string &caption, const std::vector< std::string > &colNames) const =0
Return string with table open tag.
virtual std::string DocumentBegin() const =0
Return string with open tags for document.
virtual std::string TableEnd() const =0
Return string with table close tag.
virtual std::string DocumentEnd() const =0
Return string with close tags of the document.