#include <CHMtableClass.h>
Inheritance diagram for CHMtable:
This class gives the interface to the basic data container in the Chameleon framework - a nested in-memory table. A good way to get a quick look at the contents of a Table class is to use the Dump method.
Public Member Functions | |
CHMtable () | |
Construct a table. | |
virtual | ~CHMtable () |
Destructor. | |
const CHMtableRow * | operator[] (size_t RowIndex) const |
Const operator [RowIndex] returns a const pointer to a CHMtableRow object. | |
CHMtableRow * | operator[] (size_t RowIndex) |
Non-const operator [RowIndex] returns a non-const pointer to a CHMtableRow object. | |
void | AddRow () |
Add a new row to this table. | |
size_t | ColumnIndex (const char *ColumnName) const |
Get the index of the column named ColumnName . | |
const char * | ColumnName (size_t ColumnIndex) const |
Get the name of the column located at ColumnIndex . | |
CHMdataType | ColumnType (size_t ColumnIndex) const |
Get the data type of the column at ColumnIndex . | |
size_t | CountOfColumn () const |
Get the number of columns defined in this table. | |
size_t | CountOfRow () const |
Get the count of rows in this table. | |
size_t | CountOfSubTable () const |
Get the count of subtables in this table. | |
CHMstring | Dump () const |
Output this table's contents to a string. | |
const CHMdateTime | GetDateTime (size_t RowIndex, size_t ColumnIndex) const |
Get the value of a date/time-type column. | |
double | GetDouble (size_t RowIndex, size_t ColumnIndex) const |
Get the value of a double-type column. | |
long | GetInteger (size_t RowIndex, size_t ColumnIndex) const |
Get the value of an integer-type column. | |
const CHMchar * | GetString (size_t RowIndex, size_t ColumnIndex) const |
Get the value of a string-type column. | |
CHMboolean | IsKey (size_t ColumnIndex) const |
Check if the column at ColumnIndex is flagged as a 'key' column. | |
CHMboolean | IsNode () const |
Check if this table corresponds to a table grammar node (true) or a table group (false). | |
State | GetState (size_t RowIndex, size_t ColumnIndex) const |
Test the value in the cell at row RowIndex and column ColumnIndex to see if it is null, zero, empty or invalid. | |
CHMboolean | IsNull (size_t RowIndex, size_t ColumnIndex) const |
Test the value in the cell at row RowIndex and column ColumnIndex to see if it is null. | |
void | SetDateTime (size_t RowIndex, size_t ColumnIndex, const CHMdateTime &DateTime) |
Set the value at row RowIndex and column ColumnIndex of a date/time-type column. | |
void | SetDouble (size_t RowIndex, size_t ColumnIndex, double Value) |
Set the value at row RowIndex and column ColumnIndex of a double-type column. | |
void | SetInteger (size_t RowIndex, size_t ColumnIndex, long Value) |
Set the value at row RowIndex and column ColumnIndex of an integer-type column. | |
void | setNull (size_t RowIndex, size_t ColumnIndex) const |
Set the value at row RowIndex and column ColumnIndex to null. | |
void | SetString (size_t RowIndex, size_t ColumnIndex, const CHMchar *pValue) |
Set the value at row RowIndex and column ColumnIndex of a string-type column. | |
CHMtable * | SubTable (size_t RowIndex, size_t SubTableIndex) const |
Get a pointer to the subtable located at SubTableIndex of the table at RowIndex . | |
CHMtableHandle | TableHandle () const |
Get the handle of the underlying table object. | |
const char * | TableName () const |
Get the name of this table. |
|
Construct a table.
|
|
Destructor.
|
|
Add a new row to
|
|
Get the index of the column named
Returns |
|
Get the name of the column located at
|
|
Get the data type of the column at See http://www.interfaceware.com/manual/table_properties.html for more information on table data types. |
|
Get the number of columns defined in
|
|
Get the count of rows in It's important to check this before attempting to access even the first row in case there are no rows in the table. |
|
Get the count of subtables in
|
|
Output This is useful for diagnostics. |
|
Get the value of a date/time-type column. Throws an exception if the data type doesn't match. See http://www.interfaceware.com/manual/table_properties.html for more information on table data types. |
|
Get the value of a double-type column. Throws an exception if the data type doesn't match. See http://www.interfaceware.com/manual/table_properties.html for more information on table data types. |
|
Get the value of an integer-type column. Throws an exception if the data type doesn't match. See http://www.interfaceware.com/manual/table_properties.html for more information on table data types. |
|
Test the value in the cell at row See http://interfaceware.com/manual/is_null.html for details. |
|
Get the value of a string-type column. Throws an exception if the data type doesn't match. See http://www.interfaceware.com/manual/table_properties.html for more information on table data types. |
|
Check if the column at
|
|
Check if
|
|
Test the value in the cell at row See http://www.interfaceware.com/manual/is_null.html for more information. This is an alias for GetState(...) == CHM_NULL or GetState(...) == CHM_INVALID It is recommended not to rely on this function (it is here only for backward compatibility). Use GetState(...) instead. |
|
Non-const operator
|
|
Const operator
|
|
Set the value at row Throws an exception if the data type doesn't match. See http://www.interfaceware.com/manual/table_properties.html for more information on table data types. |
|
Set the value at row Throws an exception if the data type doesn't match. See http://www.interfaceware.com/manual/table_properties.html for more information on table data types. |
|
Set the value at row Throws an exception if the data type doesn't match. See http://www.interfaceware.com/manual/table_properties.html for more information on table data types. |
|
Set the value at row
|
|
Set the value at row Throws an exception if the data type doesn't match. See http://www.interfaceware.com/manual/table_properties.html for more information on table data types. |
|
Get a pointer to the subtable located at
|
|
Get the handle of the underlying table object. This is used for the internal implementation of this Chameleon and should not be called. |
|
Get the name of
|