Next Previous Table of Contents

1. The XBaseSQL class

XBaseSQL is the root class for the XBSQL wrapper; an instance of this class represents a database. The class is in fact derived from the XBase xbXBase class.

A database is considered to be the set of .dbf and related files in a particular directory (but not in any subdirectory). The XBaseSQL constructor takes a single argument, which is the directory path.

Note that queries (select, ...) can use the ? character as place-holders, in which case values are substituted when the query is actually executed.

In addition to the above, there are some addition methods which can be used to control the behaviour of the XBSQL library:

Given an XBSQLQuery object, the particular type can be determined with the following set of methods. Each returns a null pointer if the object is not the corresponding type, or a safely type-cast pointer if it is.