OpenCPN Partial API docs
Table Class Reference

Represents a NxM simple table with captions. More...

#include <printtable.h>

Inheritance diagram for Table:
PrintTable

Public Member Functions

Tableoperator<< (const int &)
 
Tableoperator<< (const double &)
 
Tableoperator<< (const wxString &)
 
std::vector< std::vector< wxString > > & GetData ()
 
void StartFillData ()
 
void StartFillHeader ()
 
void StartFillWidths ()
 
int GetRowHeight (int i)
 

Protected Member Functions

void Start ()
 
void NewRow ()
 

Protected Attributes

int nrows
 
int ncols
 
bool create_next_row
 
std::vector< std::vector< wxString > > data
 
std::vector< double > widths
 
std::vector< wxString > header
 
TableState state
 

Detailed Description

Represents a NxM simple table with captions.

Input operator is "<<" Number of columns and rows are given dynamically by the input data. Captions are given by first input line. Every cell is given column by column. Next row is given by "<< '\n'" (or << endl)

Definition at line 69 of file printtable.h.


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