gSAFE
1.3.8
|
#include <xbio.h>
Public Member Functions | |
HXBaseFileReader (HCodepageConvert *conv, bool deletecobj=false) | |
~HXBaseFileReader (void) | |
int | close (void) |
int | firstRecord (void) |
bool | getCellBool (long rec, QString fname) |
QDate | getCellDate (long rec, QString fname) |
long | getCellDecimal (long rec, QString fname) |
double | getCellFloat (long rec, QString fname) |
QString | getCellStr (long rec, QString fname) |
long | getCurrentRecordIdx (void) |
bool | getFieldBool (QString fname) |
QDate | getFieldDate (QString fname) |
long | getFieldDecimal (QString fname) |
double | getFieldFloat (QString fname) |
QString | getFieldStr (QString fname) |
int | lastRecord (void) |
int | nextRecord (void) |
int | open (QString name) |
int | prevRecord (void) |
int | toRecord (long idx) |
Public Member Functions inherited from HXBaseFileHandler | |
HXBaseFileHandler (HCodepageConvert *conv, bool deletecobj=false) | |
~HXBaseFileHandler (void) | |
int | fieldCount (void) |
QString | fieldName (int n) |
HXBaseFieldType | fieldType (int n) |
long | recordCount (void) |
Additional Inherited Members | |
Signals inherited from HXBaseFileHandler | |
void | errorSignal (QString error) |
Protected Attributes inherited from HXBaseFileHandler | |
char * | buffer |
HCodepageConvert * | c |
xbDbf * | dbf |
bool | deleteconvertobject |
bool | opened |
xbXBase * | xbase |
You can read one XBase files with this class.
HXBaseFileReader::HXBaseFileReader | ( | HCodepageConvert * | conv, |
bool | deletecobj = false |
||
) |
Creates a XBase file reader object
conv | The codepage converter of the class (put a HCodepageConvert descendant object according to the coding of the dbf file) |
deletecobj | if this parameter true the "conv" object is deleted if not used. |
int HXBaseFileReader::close | ( | void | ) |
int HXBaseFileReader::firstRecord | ( | void | ) |
Jump to the first record, and makes it current
long HXBaseFileReader::getCurrentRecordIdx | ( | void | ) |
bool HXBaseFileReader::getFieldBool | ( | QString | fname | ) |
QDate HXBaseFileReader::getFieldDate | ( | QString | fname | ) |
long HXBaseFileReader::getFieldDecimal | ( | QString | fname | ) |
double HXBaseFileReader::getFieldFloat | ( | QString | fname | ) |
QString HXBaseFileReader::getFieldStr | ( | QString | fname | ) |
int HXBaseFileReader::lastRecord | ( | void | ) |
int HXBaseFileReader::nextRecord | ( | void | ) |
Jump to the next record, and makes it current
int HXBaseFileReader::open | ( | QString | name | ) |
int HXBaseFileReader::prevRecord | ( | void | ) |
Jump to the next record, and makes it current
int HXBaseFileReader::toRecord | ( | long | idx | ) |