[libkorigin Index] [libkorigin Heirarchy]
Representation of a worksheets data More...
#include </home/mh/korigin/korigin/doc/tmp/table.h>
Representation of a worksheets data.
This class combines multiple columns to a table. (Therefore the class's name, Table.) It provides a confortable and homogenous access to all the table's cells.
The interface of the Table class hides most of the Column structure of the internal representation of a table. However, some functions still require direct contect with class Column, most notably the insertColumn() function.
Construct an empty table.
Destruct table.
Clone the table, i.e. make a deep copy.
Get the width of the table, i.e. the number of columns.
Get the height of the table, i.e. the length of the longest column.
Get the content of the given cell.
Get the content of the given cell. Make sure that the buffer, value, is big enough to hold the contents!!!
value | into here the value of the cell is copied. |
Set the content of the given cell.
Return index of the column named "title".
Return Column of the given column.
Dump the whole table on the console. For debugging.
Insert a newly created column at the position specified. The column must be created before/while the call to insertColumn(), because insertColumn() has no way to know what kind of Column to create. You would, for example, create a new Column(Column::columnDouble), and then insert it into the table. Insertion means that the former column at the given position (and all following columns) are shifted one position to the right.
Note that the Column will be deleted by the Table's destructor.
Example:
myTable.insertColumn(0,Column(Column::columnDouble));
newCol | the newly created column to be inserted. |
at | where to insert the column. |
Insert an empty row in all columns.
Delete a column. Free the memory it uses.
Delete a row across all columns. Decrememts height!!!
Get the name of the table (its title).
Set the name of the table (its title).
Get type type string of a column.
Get the height of a column.
Get the title of a column.
Get the format string of a column.
Set the title of a column.
Set the format string of a column.
Mark the table as active.This is especially important for the formula interpreter, since columns are looked up in the active table only.
To this value the table's name is initialized.
| Kdoc |