CbmRoot
CbmReportElement.h
Go to the documentation of this file.
1 
7 #ifndef CBMREPORTELEMENT_H_
8 #define CBMREPORTELEMENT_H_
9 
10 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
11 #include <TObject.h> // for TObject
12 
13 #include <string> // for string
14 #include <vector> // for vector
15 
16 
32 class CbmReportElement : public TObject {
33 public:
38 
42  virtual ~CbmReportElement() {}
43 
50  virtual std::string
51  TableBegin(const std::string& caption,
52  const std::vector<std::string>& colNames) const = 0;
53 
58  virtual std::string TableEnd() const = 0;
59 
66  virtual std::string TableEmptyRow(int nofCols,
67  const std::string& name) const = 0;
68 
74  virtual std::string TableRow(const std::vector<std::string>& row) const = 0;
75 
82  virtual std::string Image(const std::string& title,
83  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_ */
CbmReportElement::TableBegin
virtual std::string TableBegin(const std::string &caption, const std::vector< std::string > &colNames) const =0
Return string with table open tag.
CbmReportElement::DocumentBegin
virtual std::string DocumentBegin() const =0
Return string with open tags for document.
CbmReportElement::TableRow
virtual std::string TableRow(const std::vector< std::string > &row) const =0
Return string with table row tags.
CbmReportElement::DocumentEnd
virtual std::string DocumentEnd() const =0
Return string with close tags of the document.
CbmReportElement::Image
virtual std::string Image(const std::string &title, const std::string &file) const =0
Return string with image tags.
CbmReportElement::TableEmptyRow
virtual std::string TableEmptyRow(int nofCols, const std::string &name) const =0
Return string with table row which spans over all columns.
CbmReportElement::CbmReportElement
CbmReportElement()
Constructor.
Definition: CbmReportElement.h:37
CbmReportElement::TableEnd
virtual std::string TableEnd() const =0
Return string with table close tag.
CbmReportElement::Title
virtual std::string Title(int size, const std::string &title) const =0
Return string with title.
CbmReportElement
Abstract class for basic report elements (headers, tables, images etc.).
Definition: CbmReportElement.h:32
CbmReportElement::~CbmReportElement
virtual ~CbmReportElement()
Destructor.
Definition: CbmReportElement.h:42