stk::PrintTable Class Reference

List of all members.

Detailed Description

Definition at line 18 of file PrintTable.hpp.

Public Types

typedef std::string::size_type ColumnWidth
typedef std::vector< ColumnWidthColumnWidthVector
typedef std::vector< CellRow
typedef std::vector< RowTable
 AUTO_END_COL = 0x01
 COMMA_SEPARATED_VALUES = 0x02
 PRINT_TRANSPOSED = 0x04
enum  Flags {
  AUTO_END_COL = 0x01,
  COMMA_SEPARATED_VALUES = 0x02,
  PRINT_TRANSPOSED = 0x04
}

Public Member Functions

 PrintTable ()
 PrintTable (std::ostream &os)
 ~PrintTable ()
Row::size_type headerSize () const
Table::size_type size () const
bool autoEndCol () const
PrintTablesetAutoEndCol (bool auto_end_col=true)
bool commaSeparatedValues () const
PrintTablesetCommaSeparatedValues (bool comma_separated_values=true)
PrintTablesetCommentPrefix (const std::string &comment_prefix)
const std::string & getCommentPrefix () const
PrintTablesetTitle (const std::string &title)
 This function sets the title to the given new title.
const std::string & getTitle () const
PrintTableoperator<< (PrintTable &(*f)(PrintTable &))
 Member function operator&lt;< is the manipulator instantiation function.
PrintTableoperator<< (std::ios_base &(*f)(std::ios_base &))
 Member function operator&lt;< passes the ios_base manipulator to the output stream.
PrintTablepush ()
PrintTablespan ()
PrintTablepop ()
PrintTablecell_width (ColumnWidth width)
PrintTableindent (ColumnWidth indent)
PrintTablejustify (int justification)
PrintTableend_col ()
PrintTableend_row ()
PrintTableat (size_t row, size_t col)
PrintTableend_header ()
PrintTableend_format ()
void calculate_column_widths () const
void transpose_table () const
std::ostream & print (std::ostream &os) const
 This function prints out the table to it's PrintTable.
std::ostream & printRow (std::ostream &os, const Row &row) const
 This function prints out the table to it's PrintTable.
std::ostream & printHeaderBar (std::ostream &os) const
 This function prints out the table to it's PrintTable.
std::ostream & csvPrint (std::ostream &os) const
 This function prints out the table to it's PrintTable.

Friends

template<typename T>
PrintTableoperator<< (PrintTable &table, const T &t)

Classes

struct  Cell


Member Function Documentation

PrintTable& stk::PrintTable::setTitle ( const std::string &  title  )  [inline]

This function sets the title to the given new title.

The title can also be accessed directly.

Definition at line 134 of file PrintTable.hpp.

PrintTable& stk::PrintTable::operator<< ( PrintTable &(*)(PrintTable &)  f  )  [inline]

Member function operator&lt;< is the manipulator instantiation function.

Returns:
a PrintTable reference to this object

Definition at line 149 of file PrintTable.hpp.

PrintTable& stk::PrintTable::operator<< ( std::ios_base &(*)(std::ios_base &)  f  )  [inline]

Member function operator&lt;< passes the ios_base manipulator to the output stream.

Returns:
a PrintTable reference to this object

Definition at line 161 of file PrintTable.hpp.


The documentation for this class was generated from the following files:
Generated on Tue Jul 13 09:27:33 2010 for Sierra Toolkit by  doxygen 1.4.7