List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
utl::TableColumn Class Reference

#include <TabularStream.h>

Public Member Functions

 TableColumn ()
 

Private Member Functions

void CalculateWidths ()
 
bool Empty ()
 
TableCellFront ()
 
int GetLength () const
 
template<typename T >
TableColumnoperator<< (const T &junk)
 
std::string Pop ()
 
void PopFront ()
 
void Push ()
 
void SetJustification (const TableCell::Justification just, const char mid= '\0')
 
void SetMargins (const std::string &prefix, const std::string &postfix=std::string())
 

Private Attributes

std::deque< TableCellfCells
 
TableCell::Justification fJustification
 
int fLeftWidth
 
char fMidChar
 
std::string fPostfix
 
std::string fPrefix
 
int fWidth
 

Friends

class TabularStream
 

Detailed Description

Definition at line 55 of file TabularStream.h.

Constructor & Destructor Documentation

utl::TableColumn::TableColumn ( )
inline

Definition at line 57 of file TabularStream.h.

Member Function Documentation

void TableColumn::CalculateWidths ( )
private

Definition at line 120 of file TabularStream.cc.

References utl::TableCell::eCharAligned.

bool utl::TableColumn::Empty ( )
inlineprivate

Definition at line 81 of file TabularStream.h.

References fCells.

TableCell& utl::TableColumn::Front ( )
inlineprivate

Definition at line 77 of file TabularStream.h.

References fCells.

Referenced by operator<<().

int utl::TableColumn::GetLength ( ) const
inlineprivate

Definition at line 64 of file TabularStream.h.

References fCells.

template<typename T >
TableColumn& utl::TableColumn::operator<< ( const T &  junk)
inlineprivate

Definition at line 61 of file TabularStream.h.

References Front().

string TableColumn::Pop ( )
private
void utl::TableColumn::PopFront ( )
inlineprivate

Definition at line 75 of file TabularStream.h.

References fCells.

void utl::TableColumn::Push ( )
inlineprivate

Definition at line 79 of file TabularStream.h.

References fCells.

void utl::TableColumn::SetJustification ( const TableCell::Justification  just,
const char  mid = '\0' 
)
inlineprivate

Definition at line 70 of file TabularStream.h.

References fJustification, and fMidChar.

void utl::TableColumn::SetMargins ( const std::string &  prefix,
const std::string &  postfix = std::string() 
)
inlineprivate

Definition at line 66 of file TabularStream.h.

References fPostfix, and fPrefix.

Friends And Related Function Documentation

friend class TabularStream
friend

Definition at line 93 of file TabularStream.h.

Member Data Documentation

std::deque<TableCell> utl::TableColumn::fCells
private

Definition at line 89 of file TabularStream.h.

Referenced by Empty(), Front(), GetLength(), PopFront(), and Push().

TableCell::Justification utl::TableColumn::fJustification
private

Definition at line 87 of file TabularStream.h.

Referenced by SetJustification().

int utl::TableColumn::fLeftWidth
private

Definition at line 91 of file TabularStream.h.

char utl::TableColumn::fMidChar
private

Definition at line 88 of file TabularStream.h.

Referenced by SetJustification().

std::string utl::TableColumn::fPostfix
private

Definition at line 86 of file TabularStream.h.

Referenced by SetMargins().

std::string utl::TableColumn::fPrefix
private

Definition at line 85 of file TabularStream.h.

Referenced by SetMargins().

int utl::TableColumn::fWidth
private

Definition at line 90 of file TabularStream.h.


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

, generated on Tue Sep 26 2023.