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

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 28 of file CbmTextReportElement.h.

Constructor & Destructor Documentation

◆ CbmTextReportElement()

CbmTextReportElement::CbmTextReportElement ( )

Constructor.

Definition at line 25 of file CbmTextReportElement.cxx.

◆ ~CbmTextReportElement()

CbmTextReportElement::~CbmTextReportElement ( )
virtual

Destructor.

Definition at line 27 of file CbmTextReportElement.cxx.

Member Function Documentation

◆ DocumentBegin()

string CbmTextReportElement::DocumentBegin ( ) const
virtual

Inherited from CbmReportElement.

Implements CbmReportElement.

Definition at line 73 of file CbmTextReportElement.cxx.

◆ DocumentEnd()

string CbmTextReportElement::DocumentEnd ( ) const
virtual

Inherited from CbmReportElement.

Implements CbmReportElement.

Definition at line 80 of file CbmTextReportElement.cxx.

◆ FormatCell()

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

Definition at line 84 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 71 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 29 of file CbmTextReportElement.cxx.

References fColW, and FormatCell().

◆ 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 51 of file CbmTextReportElement.cxx.

References fColW.

◆ TableEnd()

string CbmTextReportElement::TableEnd ( ) const
virtual

Inherited from CbmReportElement.

Implements CbmReportElement.

Definition at line 44 of file CbmTextReportElement.cxx.

◆ TableRow()

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

Inherited from CbmReportElement.

Implements CbmReportElement.

Definition at line 60 of file CbmTextReportElement.cxx.

References FormatCell().

◆ Title() [1/2]

◆ Title() [2/2]

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

Inherited from CbmReportElement.

Definition at line 82 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: