CbmRoot
CbmReportElement Class Referenceabstract

Abstract class for basic report elements (headers, tables, images etc.). More...

#include <CbmReportElement.h>

Inheritance diagram for CbmReportElement:
[legend]
Collaboration diagram for CbmReportElement:
[legend]

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...
 

Detailed Description

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).

Author
Semen Lebedev s.leb.nosp@m.edev.nosp@m.@gsi..nosp@m.de
Date
2011

Definition at line 32 of file CbmReportElement.h.

Constructor & Destructor Documentation

◆ CbmReportElement()

CbmReportElement::CbmReportElement ( )
inline

Constructor.

Definition at line 37 of file CbmReportElement.h.

◆ ~CbmReportElement()

virtual CbmReportElement::~CbmReportElement ( )
inlinevirtual

Destructor.

Definition at line 42 of file CbmReportElement.h.

Member Function Documentation

◆ DocumentBegin()

◆ DocumentEnd()

◆ Image()

virtual std::string CbmReportElement::Image ( const std::string &  title,
const std::string &  file 
) const
pure virtual

Return string with image tags.

Parameters
[in]titleTitle of the image.
[in]fileName of the image file.
Returns
string with image tags.

Implemented in CbmTextReportElement, CbmHtmlReportElement, and CbmLatexReportElement.

Referenced by CbmReport::PrintCanvases().

◆ TableBegin()

virtual std::string CbmReportElement::TableBegin ( const std::string &  caption,
const std::vector< std::string > &  colNames 
) const
pure virtual

◆ TableEmptyRow()

virtual std::string CbmReportElement::TableEmptyRow ( int  nofCols,
const std::string &  name 
) const
pure virtual

Return string with table row which spans over all columns.

Parameters
[in]nofColsnumber of columns in table.
[in]nameName of the row.
Returns
string with table row which spans over all columns.

Implemented in CbmHtmlReportElement, and CbmLatexReportElement.

◆ TableEnd()

◆ TableRow()

◆ Title()


The documentation for this class was generated from the following file: