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) 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 531 #endif // __XB_DBF_H__ xbShort GetRecordLen()
Return record length.
Definition: xbdbf.h:245
xbIxList * NextIx
Definition: xbdbf.h:162
xbLong FieldCount()
Return number of fields.
Definition: xbdbf.h:220
char * GetRecordBuf()
Return a pointer to the record buffer.
Definition: xbdbf.h:241
unsigned char FieldLen
Definition: xbdbf.h:135
xbXBase class
Definition: xbase64.h:153
xbLong GetRecCnt()
Definition: xbdbf.h:247
short int xbBool
xbBool type
Definition: xbtypes.h:78
virtual const char * GetExtWithDot(bool lower)=0
void ResetNoOfRecs()
Set number of records to zero????
Definition: xbdbf.h:262
xbShort DeleteAllRecords()
Delete all records.
Definition: xbdbf.h:211
xbShort GetDbfStatus()
Return status.
Definition: xbdbf.h:228
xbNtx class
Definition: xbntx.h:115
xbNdx class
Definition: xbndx.h:125
#define XBDLLEXPORT
Definition: xbase64.h:87
unsigned char NoOfDecs
Definition: xbdbf.h:136
long xbLong
Definition: xbtypes.h:61
class XBDLLEXPORT xbDbf
Definition: xbase64.h:139
short int xbShort
xbShort type
Definition: xbtypes.h:60
void AutoLockOff()
Turn autolock off.
Definition: xbdbf.h:364
xbShort ExclusiveUnlock()
Definition: xbdbf.h:354
unsigned char NoOfDecs
Definition: xbdbf.h:150
xbString IxName
Definition: xbdbf.h:163
char * Address
Definition: xbdbf.h:146
#define XB_NO_ERROR
Definition: xbretcod.h:50
unsigned long int xbULong
xbULong type
Definition: xbtypes.h:50
xbString class
Definition: xbstring.h:63
double xbDouble
xbDouble type
Definition: xbtypes.h:73
xbShort LockDatabase(xbShort, xbShort, xbLong)
Definition: xbdbf.h:351
char * Address2
Definition: xbdbf.h:151
char * fp
Definition: xbdbf.h:152
xbLong GetCurRecNo()
Return current record number.
Definition: xbdbf.h:236
xbShort UndeleteAllRecords()
Undelete all records.
Definition: xbdbf.h:267
xbIxList struct
Definition: xbdbf.h:161
xbIndex class
Definition: xbindex.h:62
unsigned short int xbUShort
xbUShort type
Definition: xbtypes.h:55
xbShort LongFieldLen
Definition: xbdbf.h:154
Defines a field in an XBase file header (DBF file header)
Definition: xbdbf.h:143
xbShort GetRealDelete()
Return whether "real" deletes are on or off.
Definition: xbdbf.h:415
unsigned char FieldLen
Definition: xbdbf.h:149
xbXBase * xbase
Definition: xbdbf.h:196
float xbFloat
xbFloat type
Definition: xbtypes.h:67
const xbString & GetDbfName()
Return Dbf name.
Definition: xbdbf.h:224
xbShort ExclusiveLock(xbShort)
Definition: xbdbf.h:353
char Type
Definition: xbdbf.h:132
xbMH struct
Definition: xbdbf.h:190
const xbString & GetFileName()
Definition: xbfile.h:57
void RealDeleteOff()
Definition: xbdbf.h:409
Used to define the fields in a database (DBF file).
Definition: xbdbf.h:130
xbShort GetAutoLock()
Return whether or not autolocking is on or off.
Definition: xbdbf.h:368
char Type
Definition: xbdbf.h:145
void AutoLockOn()
Turn autolock on.
Definition: xbdbf.h:360
void RealDeleteOn()
Turn on "real" deletes.
Definition: xbdbf.h:406