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

Holds TabularStream cell entry. More...

#include <TabularStream.h>

Public Member Functions

TableCelloperator= (const TableCell &c)
 
 TableCell ()
 
 TableCell (const TableCell &c)
 

Private Types

enum  Justification { eFlushLeft, eFlushRight, eCenter, eCharAligned }
 

Private Member Functions

std::string GetEntry (const int left=0, const int right=0) const
 
std::string GetEntry (const Justification just, const int totalSize, const int leftSize=0, const char mid= '\0') const
 
int GetSize () const
 
std::pair< int, int > GetSize (const char mid) const
 
template<typename T >
TableCelloperator<< (const T &item)
 

Private Attributes

std::ostringstream fEntry
 

Friends

class TableColumn
 
class TabularStream
 

Detailed Description

Holds TabularStream cell entry.

Definition at line 18 of file TabularStream.h.

Member Enumeration Documentation

Enumerator
eFlushLeft 
eFlushRight 
eCenter 
eCharAligned 

Definition at line 26 of file TabularStream.h.

Constructor & Destructor Documentation

utl::TableCell::TableCell ( )
inline

Definition at line 20 of file TabularStream.h.

utl::TableCell::TableCell ( const TableCell c)
inline

Definition at line 21 of file TabularStream.h.

Member Function Documentation

std::string utl::TableCell::GetEntry ( const int  left = 0,
const int  right = 0 
) const
inlineprivate

Definition at line 36 of file TabularStream.h.

References fEntry.

Referenced by utl::TableColumn::Pop().

string TableCell::GetEntry ( const Justification  just,
const int  totalSize,
const int  leftSize = 0,
const char  mid = '\0' 
) const
private

Definition at line 12 of file TabularStream.cc.

int utl::TableCell::GetSize ( ) const
inlineprivate

Definition at line 42 of file TabularStream.h.

References fEntry.

pair< int, int > TableCell::GetSize ( const char  mid) const
private

Definition at line 63 of file TabularStream.cc.

template<typename T >
TableCell& utl::TableCell::operator<< ( const T &  item)
inlineprivate

Definition at line 34 of file TabularStream.h.

References fEntry.

TableCell& utl::TableCell::operator= ( const TableCell c)
inline

Definition at line 22 of file TabularStream.h.

References fEntry.

Friends And Related Function Documentation

friend class TableColumn
friend

Definition at line 48 of file TabularStream.h.

friend class TabularStream
friend

Definition at line 49 of file TabularStream.h.

Member Data Documentation

std::ostringstream utl::TableCell::fEntry
private

Definition at line 46 of file TabularStream.h.

Referenced by GetEntry(), GetSize(), operator<<(), and operator=().


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

, generated on Tue Sep 26 2023.