Views
Data Access Package API Reference Guide
Product Documentation:
Views Documentation Home
Classes | Typedefs | Functions
table.h File Reference
#include <ilviews/macros.h>
#include <ilviews/intrface/value.h>
#include <ilviews/dataccess/error.h>
#include <ilviews/dataccess/value.h>
#include <ilviews/dataccess/param.h>
#include <ilviews/dataccess/tblbuf.h>
#include <ilviews/dataccess/tblsel.h>
#include <ilviews/dataccess/tblprop.h>
#include <ilviews/dataccess/tblptr.h>
#include <ilviews/dataccess/transmgr.h>
#include <ilviews/dataccess/intrface/tblitf.h>

Classes

class  IliTable
 Table class. More...
 

Typedefs

typedef int(* IliCompareFunction) (IliTableBuffer *buf1, IliTableBuffer *buf2, const IlInt *columns, IlInt colCount, IlAny userData)
 

Functions

IlInt IliAscOrder (IlInt colno)
 Table columns can be sorted by ascending or descending order. The IliAscOrder() function takes a column index and returns a value indicating that the column must be sorted by ascending order. More...
 
IlInt IliDescOrder (IlInt colno)
 Table columns can be sorted by ascending or descending order. The IliDescOrder() function takes a column index and returns a value indicating that the column must be sorted by descending order. More...
 

Detailed Description

Library: dataccess
Declarations about tables.

Typedef Documentation

◆ IliCompareFunction

IliCompareFunction

This type defines the prototype of a function that is called to compare two rows of a table.

The sorting order is defined by the columns parameter, which designates an array of colCount column positions. Each given column is sorted in the ascending or descending order of the values. The global functions IliAscOrder() and IliDescOrder() are used to indicate the type of sort. Example:

// Sorts in the ascending order of column 2
// Sorts in the descending order of column 3
static const IlInt columns[] = { IliAscOrder (2), IliDescOrder (3) };
tbl->sortRows(columns, 2);
Parameters
buf1The buffer of the first row.
buf2The buffer of the second row.
columsThe column list to sort.
colCountThe column count.
userDataThe user data.
Returns
  • +1 if the first row is greater than the second row.
  • 0 if the rows are equal.
  • -1 if the second row is greater than the first row.
See also
IliTable, IliAscOrder, IliDescOrder.

Function Documentation

◆ IliAscOrder()

IlInt IliAscOrder ( IlInt  colno)

Table columns can be sorted by ascending or descending order. The IliAscOrder() function takes a column index and returns a value indicating that the column must be sorted by ascending order.

Library: dataccess

Parameters
colnoThe column position.
Returns
The column index to sort.
See also
IliTable, IliDescOrder.

◆ IliDescOrder()

IlInt IliDescOrder ( IlInt  colno)

Table columns can be sorted by ascending or descending order. The IliDescOrder() function takes a column index and returns a value indicating that the column must be sorted by descending order.

Library: dataccess

Parameters
colnoThe column position.
Returns
The column index to sort.
See also
IliTable, IliAscOrder.
IliDescOrder
IlInt IliDescOrder(IlInt colno)
Table columns can be sorted by ascending or descending order. The IliDescOrder() function takes a col...
IlInt
long IlInt
IliAscOrder
IlInt IliAscOrder(IlInt colno)
Table columns can be sorted by ascending or descending order. The IliAscOrder() function takes a colu...