CbmRoot
CbmTextReportElement Class Referenceabstract

Implementation of CbmLitReportElement for text output. More...

#include <CbmTextReportElement.h>

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

Public Member Functions

 CbmTextReportElement ()
 Constructor. More...
 
virtual ~CbmTextReportElement ()
 Destructor. More...
 
virtual std::string TableBegin (const std::string &caption, const std::vector< std::string > &colNames) const
 Inherited from CbmReportElement. More...
 
virtual std::string TableEnd () const
 Inherited from CbmReportElement. More...
 
virtual std::string TableEmptyRow (Int_t nofCols, const std::string &name) const
 Inherited from CbmReportElement. More...
 
virtual std::string TableRow (const std::vector< std::string > &row) const
 Inherited from CbmReportElement. More...
 
virtual std::string Image (const std::string &title, const std::string &file) const
 Inherited from CbmReportElement. More...
 
virtual std::string DocumentBegin () const
 Inherited from CbmReportElement. More...
 
virtual std::string DocumentEnd () const
 Inherited from CbmReportElement. More...
 
virtual std::string Title (Int_t size, const std::string &title) const
 Inherited from CbmReportElement. 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 Title (int size, const std::string &title) const =0
 Return string with title. More...
 

Private Member Functions

std::string FormatCell (const std::string &cell) const
 

Private Attributes

Int_t fColW
 

Detailed Description

Implementation of CbmLitReportElement for text output.

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

Definition at line 24 of file CbmTextReportElement.h.

Constructor & Destructor Documentation

◆ CbmTextReportElement()

CbmTextReportElement::CbmTextReportElement ( )

Constructor.

Definition at line 21 of file CbmTextReportElement.cxx.

◆ ~CbmTextReportElement()

CbmTextReportElement::~CbmTextReportElement ( )
virtual

Destructor.

Definition at line 23 of file CbmTextReportElement.cxx.

Member Function Documentation

◆ DocumentBegin()

string CbmTextReportElement::DocumentBegin ( ) const
virtual

Inherited from CbmReportElement.

Implements CbmReportElement.

Definition at line 70 of file CbmTextReportElement.cxx.

◆ DocumentEnd()

string CbmTextReportElement::DocumentEnd ( ) const
virtual

Inherited from CbmReportElement.

Implements CbmReportElement.

Definition at line 76 of file CbmTextReportElement.cxx.

◆ FormatCell()

string CbmTextReportElement::FormatCell ( const std::string &  cell) const
private

Definition at line 82 of file CbmTextReportElement.cxx.

References fColW.

Referenced by TableBegin(), and TableRow().

◆ Image()

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

Inherited from CbmReportElement.

Implements CbmReportElement.

Definition at line 65 of file CbmTextReportElement.cxx.

◆ TableBegin()

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

Inherited from CbmReportElement.

Implements CbmReportElement.

Definition at line 25 of file CbmTextReportElement.cxx.

References fColW, FormatCell(), and i.

◆ TableEmptyRow() [1/2]

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

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.

◆ TableEmptyRow() [2/2]

string CbmTextReportElement::TableEmptyRow ( Int_t  nofCols,
const std::string &  name 
) const
virtual

Inherited from CbmReportElement.

Definition at line 46 of file CbmTextReportElement.cxx.

References fColW.

◆ TableEnd()

string CbmTextReportElement::TableEnd ( ) const
virtual

Inherited from CbmReportElement.

Implements CbmReportElement.

Definition at line 40 of file CbmTextReportElement.cxx.

◆ TableRow()

string CbmTextReportElement::TableRow ( const std::vector< std::string > &  row) const
virtual

Inherited from CbmReportElement.

Implements CbmReportElement.

Definition at line 55 of file CbmTextReportElement.cxx.

References FormatCell(), and i.

◆ Title() [1/2]

◆ Title() [2/2]

string CbmTextReportElement::Title ( Int_t  size,
const std::string &  title 
) const
virtual

Inherited from CbmReportElement.

Definition at line 78 of file CbmTextReportElement.cxx.

Member Data Documentation

◆ fColW

Int_t CbmTextReportElement::fColW
private

Definition at line 83 of file CbmTextReportElement.h.

Referenced by FormatCell(), TableBegin(), and TableEmptyRow().


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