21 #ifdef ENABLE_XBASE_SUPPORT
23 #ifndef GSAFE_XBASE_IO_H
24 #define GSAFE_XBASE_IO_H
31 #define CPCONV_BUFFERLENGTH 256
32 #define XBASESCHEMA_MAXFIELD 64
38 enum HXBaseFieldType {
56 virtual QString conv_from(
char * from) = 0;
57 virtual void conv_to(QString from,
char * buffer,
int bufflen) = 0;
67 virtual QString conv_from(
char * from);
68 virtual void conv_to(QString from,
char * buffer,
int bufflen);
78 virtual QString conv_from(
char * from);
79 virtual void conv_to(QString from,
char * buffer,
int bufflen);
96 bool deleteconvertobject;
150 int open(QString name);
197 QString getCellStr (
long rec,QString fname);
198 long getCellDecimal(
long rec,QString fname);
199 double getCellFloat (
long rec,QString fname);
200 bool getCellBool (
long rec,QString fname);
201 QDate getCellDate (
long rec,QString fname);
237 void setLastDefinedField(
int idx);
256 void defineField(QString name,HXBaseFieldType type,
int length=0,
int nofdecimals=0);
262 int create(QString name,
int version);
266 int open(QString name);
290 #endif // GSAFE_XBASE_IO_H
292 #endif // ENABLE_XBASE_SUPPORT
HXBaseFileWriter(HCodepageConvert *conv, bool deletecobj=false)
long getFieldDecimal(QString fname)
HXBaseFileReader(HCodepageConvert *conv, bool deletecobj=false)
QDate getFieldDate(QString fname)
int create(QString name, int version)
bool getFieldBool(QString fname)
HXBaseFileHandler(HCodepageConvert *conv, bool deletecobj=false)
int setFieldFloat(QString fname, double val)
long getCurrentRecordIdx(void)
void errorSignal(QString error)
HXBaseFieldType fieldType(int n)
QString getFieldStr(QString fname)
int setFieldBool(QString fname, bool logical)
int setFieldDecimal(QString fname, long decimal)
int setFieldDate(QString fname, QDate date)
void defineField(QString name, HXBaseFieldType type, int length=0, int nofdecimals=0)
double getFieldFloat(QString fname)
int setFieldStr(QString fname, QString str)