ComPWA
Common Partial-Wave-Analysis Framework
ComPWA::TableFormatter Class Reference

#include <TableFormatter.hpp>

Public Member Functions

 TableFormatter (std::ostream *output)
 
virtual ~TableFormatter ()
 
virtual void reset ()
 
virtual void delim ()
 
virtual void footer ()
 
virtual void header ()
 
virtual void addColumn (std::string title, unsigned int fixlength=999)
 
void trimString (std::string &src)
 
template<typename T >
TableFormatteroperator<< (T in)
 

Protected Attributes

std::ostream * OutputStream
 
std::vector< unsigned int > ColumnWidth
 
std::vector< std::string > ColumnTitle
 
unsigned int CurRow
 
unsigned int CurCol
 
unsigned int TotalWidth
 
std::string sep
 
std::string firstSep
 
std::string lastSep
 
std::string pm
 

Detailed Description

Definition at line 17 of file TableFormatter.hpp.

+ Collaboration diagram for ComPWA::TableFormatter:

Constructor & Destructor Documentation

◆ TableFormatter()

ComPWA::TableFormatter::TableFormatter ( std::ostream *  output)
inline

Definition at line 19 of file TableFormatter.hpp.

◆ ~TableFormatter()

virtual ComPWA::TableFormatter::~TableFormatter ( )
inlinevirtual

Definition at line 27 of file TableFormatter.hpp.

Member Function Documentation

◆ addColumn()

void ComPWA::TableFormatter::addColumn ( std::string  title,
unsigned int  fixlength = 999 
)
virtual

Definition at line 27 of file TableFormatter.cpp.

◆ delim()

void ComPWA::TableFormatter::delim ( )
virtual

Definition at line 9 of file TableFormatter.cpp.

◆ footer()

void ComPWA::TableFormatter::footer ( )
virtual

Definition at line 16 of file TableFormatter.cpp.

◆ header()

void ComPWA::TableFormatter::header ( )
virtual

Definition at line 18 of file TableFormatter.cpp.

◆ operator<<()

template<typename T >
TableFormatter& ComPWA::TableFormatter::operator<< ( in)
inline

Definition at line 41 of file TableFormatter.hpp.

◆ reset()

void ComPWA::TableFormatter::reset ( )
virtual

Definition at line 38 of file TableFormatter.cpp.

◆ trimString()

void ComPWA::TableFormatter::trimString ( std::string &  src)

Definition at line 46 of file TableFormatter.cpp.

Member Data Documentation

◆ ColumnTitle

std::vector<std::string> ComPWA::TableFormatter::ColumnTitle
protected

Definition at line 59 of file TableFormatter.hpp.

◆ ColumnWidth

std::vector<unsigned int> ComPWA::TableFormatter::ColumnWidth
protected

Definition at line 58 of file TableFormatter.hpp.

◆ CurCol

unsigned int ComPWA::TableFormatter::CurCol
protected

Definition at line 62 of file TableFormatter.hpp.

◆ CurRow

unsigned int ComPWA::TableFormatter::CurRow
protected

Definition at line 61 of file TableFormatter.hpp.

◆ firstSep

std::string ComPWA::TableFormatter::firstSep
protected

Definition at line 65 of file TableFormatter.hpp.

◆ lastSep

std::string ComPWA::TableFormatter::lastSep
protected

Definition at line 66 of file TableFormatter.hpp.

◆ OutputStream

std::ostream* ComPWA::TableFormatter::OutputStream
protected

Definition at line 54 of file TableFormatter.hpp.

◆ pm

std::string ComPWA::TableFormatter::pm
protected

Definition at line 67 of file TableFormatter.hpp.

◆ sep

std::string ComPWA::TableFormatter::sep
protected

Definition at line 64 of file TableFormatter.hpp.

◆ TotalWidth

unsigned int ComPWA::TableFormatter::TotalWidth
protected

Definition at line 63 of file TableFormatter.hpp.


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