CbmRoot
CbmTextReportElement.h
Go to the documentation of this file.
1 
7 #ifndef CBMTEXTREPORTELEMENT_H_
8 #define CBMTEXTREPORTELEMENT_H_
9 
10 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
11 #include <RtypesCore.h> // for Int_t
12 
13 #include <string> // for string
14 #include <vector> // for vector
15 
16 #include "CbmReportElement.h" // for CbmReportElement
17 
25 public:
30 
34  virtual ~CbmTextReportElement();
35 
39  virtual std::string
40  TableBegin(const std::string& caption,
41  const std::vector<std::string>& colNames) const;
42 
46  virtual std::string TableEnd() const;
47 
51  virtual std::string TableEmptyRow(Int_t nofCols,
52  const std::string& name) const;
53 
57  virtual std::string TableRow(const std::vector<std::string>& row) const;
58 
62  virtual std::string Image(const std::string& title,
63  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 
80 private:
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_ */
CbmTextReportElement::Image
virtual std::string Image(const std::string &title, const std::string &file) const
Inherited from CbmReportElement.
Definition: CbmTextReportElement.cxx:65
CbmTextReportElement::DocumentEnd
virtual std::string DocumentEnd() const
Inherited from CbmReportElement.
Definition: CbmTextReportElement.cxx:76
CbmTextReportElement::TableEnd
virtual std::string TableEnd() const
Inherited from CbmReportElement.
Definition: CbmTextReportElement.cxx:40
CbmTextReportElement::TableRow
virtual std::string TableRow(const std::vector< std::string > &row) const
Inherited from CbmReportElement.
Definition: CbmTextReportElement.cxx:55
CbmReportElement.h
Abstract class for basic report elements (headers, tables, images etc.).
CbmTextReportElement::TableBegin
virtual std::string TableBegin(const std::string &caption, const std::vector< std::string > &colNames) const
Inherited from CbmReportElement.
Definition: CbmTextReportElement.cxx:25
CbmTextReportElement::~CbmTextReportElement
virtual ~CbmTextReportElement()
Destructor.
Definition: CbmTextReportElement.cxx:23
CbmTextReportElement::DocumentBegin
virtual std::string DocumentBegin() const
Inherited from CbmReportElement.
Definition: CbmTextReportElement.cxx:70
CbmTextReportElement::fColW
Int_t fColW
Definition: CbmTextReportElement.h:83
CbmTextReportElement::FormatCell
std::string FormatCell(const std::string &cell) const
Definition: CbmTextReportElement.cxx:82
CbmTextReportElement::TableEmptyRow
virtual std::string TableEmptyRow(Int_t nofCols, const std::string &name) const
Inherited from CbmReportElement.
Definition: CbmTextReportElement.cxx:46
CbmTextReportElement::Title
virtual std::string Title(Int_t size, const std::string &title) const
Inherited from CbmReportElement.
Definition: CbmTextReportElement.cxx:78
CbmTextReportElement::CbmTextReportElement
CbmTextReportElement()
Constructor.
Definition: CbmTextReportElement.cxx:21
CbmTextReportElement
Implementation of CbmLitReportElement for text output.
Definition: CbmTextReportElement.h:24
CbmReportElement
Abstract class for basic report elements (headers, tables, images etc.).
Definition: CbmReportElement.h:32