Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages   Examples  

TableDefinition Class Reference
[Utilities]

Inherited by dynTableDefinition [virtual], utTableDef [virtual], and RNGTable.


Detailed Description

The table structure is defined by TableDefinition.

Author:
Ralf Gerstenberger

See also:
dynTableDefinition utTableDef
The structure of a table consists of column. Each column has a Label and a ColumnType. TableDefinition is an interface that is used to provide this information.

Since:
1.0


Public Member Functions

virtual unsigned long getNumberOfColumns () const=0
 number of columns

virtual const char * getLabelOfColumn (unsigned long i) const=0
 get label of column

virtual ColumnType getTypeOfColumn (unsigned long i) const=0
 get type of column


Friends

bool operator== (const TableDefinition &f, const TableDefinition &s)
 compare two TableDefinitions


Member Function Documentation

virtual unsigned long getNumberOfColumns  )  const [pure virtual]
 

number of columns

Returns:
number of columns in table

Implemented in dynTableDefinition, and utTableDef.

virtual const char* getLabelOfColumn unsigned long  i  )  const [pure virtual]
 

get label of column

Returns:
label or 0 if there is no such column
Parameters:
i index of column (0..)

Implemented in dynTableDefinition, and utTableDef.

virtual ColumnType getTypeOfColumn unsigned long  i  )  const [pure virtual]
 

get type of column

Returns:
ColumnType, ColumnType::INVALID if there is no such column
Parameters:
i index of column (0..)

Implemented in dynTableDefinition, and utTableDef.


Friends And Related Function Documentation

bool operator== const TableDefinition &  f,
const TableDefinition &  s
[friend]
 

compare two TableDefinitions

Returns:
true if number of columns, all labels and all types are equal


Generated on Mon Aug 11 10:36:07 2003 for ODEMx by doxygen1.3