rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Data Access Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

table.h File Reference

#include <ilviews/macros.h>
#include <ilviews/intrface/value.h>
#include <ilviews/dataccess/error.h>
#include <ilviews/dataccess/schema.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.
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.

Detailed Description

[library dataccess ilviews/dataccess/table.h] Declarations about tables.


Typedef Documentation

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:
buf1 The buffer of the first row.
buf2 The buffer of the second row.
colums The column list to sort.
colCount The column count.
userData The user data. params parameter.
params The 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:
colno The 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:
colno The column position.
Returns:
The column index to sort.
See also:
IliTable, IliAscOrder
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends

© Copyright 2012, 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.