44 #ifdef __GNU_LesserG__
64 #if defined(XB_INDEX_ANY)
73 #define XB_CHAR_FLD 'C'
74 #define XB_LOGICAL_FLD 'L'
75 #define XB_NUMERIC_FLD 'N'
76 #define XB_DATE_FLD 'D'
77 #define XB_MEMO_FLD 'M'
78 #define XB_FLOAT_FLD 'F'
91 #define XB_DONTOVERLAY 0
93 #define XB_CHAREOF '\x1A'
94 #define XB_CHARHDR '\x0D'
164 #if defined(XB_INDEX_ANY)
176 #ifdef XB_MEMO_FIELDS
199 #if defined(XB_INDEX_ANY)
249 xbLong PhysicalNoOfRecords();
250 xbShort OpenDatabase(
const char * );
252 void (*packStatusFunc)(
xbLong itemNum,
xbLong numItems) = 0,
253 void (*indexStatusFunc)(
xbLong itemNum,
xbLong numItems) = 0);
257 void (*statusFunc)(
xbLong itemNum,
xbLong numItems) = 0);
272 const char *GetField(
xbShort FieldNo)
const;
273 const char *GetField(
const char *Name)
const;
277 xbShort GetField(
const char *Name,
char *Buf)
const;
278 xbShort GetRawField(
const char *Name,
char *Buf)
const;
279 xbShort GetField(
const char *Name,
char *Buf,
xbShort RecBufSw)
const;
283 char * GetFieldName(
xbShort );
284 xbShort GetFieldNo(
const char * FieldName )
const;
285 char GetFieldType(
xbShort FieldNo )
const;
287 xbShort GetLogicalField(
const char * FieldName );
288 char * GetStringField(
xbShort FieldNo );
289 char * GetStringField(
const char * FieldName );
292 xbShort PutField(
const char *Name,
const char *buf);
293 xbShort PutRawField(
const char *Name,
const char *buf );
294 xbShort ValidLogicalData(
const char * );
295 xbShort ValidNumericData(
const char * );
297 xbLong GetLongField(
const char *FieldName)
const;
302 xbFloat GetFloatField(
const char * FieldName );
307 xbDouble GetDoubleField(
const char *);
313 xbShort GetLockMode() {
return LockMode; }
318 int GetDbfFileNo() {
return fileno( fp ); }
319 int GetMemoFileNo() {
return fileno( mfp ); }
321 #ifdef XB_MEMO_FIELDS
370 #ifdef XB_MEMO_FIELDS
372 char * Buf,
xbShort LockOption );
375 char * Buf,
xbShort LockOption );
378 const char * Buf,
xbShort LockOption );
382 xbShort MemoFieldsPresent()
const;
383 xbLong CalcLastDataBlock();
385 LastDataBlock,
xbLong & Location,
xbLong &PreviousNode );
387 Location,
xbLong PreviousNode );
388 xbString & GetDbtName() {
return MemofileName; }
392 void DumpMemoHeader()
const;
393 void DumpMemoBlock()
const;
417 #if defined(XB_INDEX_ANY)
423 virtual const char* GetExtWithDot(
bool lower );
433 #ifdef XB_MEMO_FIELDS
438 xbShort GetMemoBlockSize() {
return MemoHeader.BlockSize; }
442 xbLong Len,
const char * Buf );
445 xbShort UpdateHeadNextNode()
const;
447 xbShort IsType3Dbt()
const {
return( Version==(
char)0x83 ? 1:0 ); }
449 {
return (( Version==(
char)0x8B || Version==(
char)0x8E ) ? 1:0 );}
465 #ifdef XB_MEMO_FIELDS
516 #ifdef XB_MEMO_FIELDS
xbMH struct
Definition: xbdbf.h:190
void RealDeleteOff()
Definition: xbdbf.h:409
void RealDeleteOn()
Turn on "real" deletes.
Definition: xbdbf.h:406
void AutoLockOff()
Turn autolock off.
Definition: xbdbf.h:364
const xbString & GetDbfName()
Return Dbf name.
Definition: xbdbf.h:224
xbShort ExclusiveUnlock()
Definition: xbdbf.h:354
void ResetNoOfRecs()
Set number of records to zero????
Definition: xbdbf.h:262
xbShort GetDbfStatus()
Return status.
Definition: xbdbf.h:228
void AutoLockOn()
Turn autolock on.
Definition: xbdbf.h:360
xbShort GetRealDelete()
Return whether "real" deletes are on or off.
Definition: xbdbf.h:415
xbShort ExclusiveLock(xbShort)
Definition: xbdbf.h:353
xbShort DeleteAllRecords()
Delete all records.
Definition: xbdbf.h:211
xbShort LockDatabase(xbShort, xbShort, xbLong)
Definition: xbdbf.h:351
xbShort UndeleteAllRecords()
Undelete all records.
Definition: xbdbf.h:267
char * GetRecordBuf()
Return a pointer to the record buffer.
Definition: xbdbf.h:241
xbShort GetRecordLen()
Return record length.
Definition: xbdbf.h:245
xbXBase * xbase
Definition: xbdbf.h:196
xbShort GetAutoLock()
Return whether or not autolocking is on or off.
Definition: xbdbf.h:368
xbLong GetCurRecNo()
Return current record number.
Definition: xbdbf.h:236
xbLong GetRecCnt()
Definition: xbdbf.h:247
xbLong FieldCount()
Return number of fields.
Definition: xbdbf.h:220
xbIndex class
Definition: xbindex.h:63
xbNdx class
Definition: xbndx.h:126
xbNtx class
Definition: xbntx.h:116
xbString class
Definition: xbstring.h:63
xbXBase class
Definition: xbase64.h:152
xbIxList struct
Definition: xbdbf.h:161
xbString IxName
Definition: xbdbf.h:163
xbIxList * NextIx
Definition: xbdbf.h:162
Defines a field in an XBase file header (DBF file header)
Definition: xbdbf.h:143
xbShort LongFieldLen
Definition: xbdbf.h:154
char * Address2
Definition: xbdbf.h:151
unsigned char NoOfDecs
Definition: xbdbf.h:150
char * fp
Definition: xbdbf.h:152
char Type
Definition: xbdbf.h:145
unsigned char FieldLen
Definition: xbdbf.h:149
char * Address
Definition: xbdbf.h:146
Used to define the fields in a database (DBF file).
Definition: xbdbf.h:130
unsigned char NoOfDecs
Definition: xbdbf.h:136
char Type
Definition: xbdbf.h:132
unsigned char FieldLen
Definition: xbdbf.h:135
class XBDLLEXPORT xbDbf
Definition: xbase64.h:138
#define XBDLLEXPORT
Definition: xbase64.h:86
#define XB_NO_ERROR
Definition: xbretcod.h:50
long xbLong
Definition: xbtypes.h:61
short int xbBool
xbBool type
Definition: xbtypes.h:78
short int xbShort
xbShort type
Definition: xbtypes.h:60
unsigned short int xbUShort
xbUShort type
Definition: xbtypes.h:55
double xbDouble
xbDouble type
Definition: xbtypes.h:73
unsigned long int xbULong
xbULong type
Definition: xbtypes.h:50
float xbFloat
xbFloat type
Definition: xbtypes.h:67