rwlogo

Rogue Wave Views
Data Access Package API Reference Guide

Product Documentation:

Rogue Wave 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 ilviews/dataccess/table.h] Declarations about tables.

Typedef Documentation

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. params parameter.
paramsThe parameters transmitted to the global callback. This array contains paramsCount character strings.
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

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
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

© Copyright 2014, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.