42 #ifndef __XB_XBASE_H__ 43 #define __XB_XBASE_H__ 45 #ifdef __GNU_LesserG__ 57 #if defined(__WIN32__) 63 #if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__GNU_LesserC__) 65 # define XBDLLEXPORT __declspec( dllexport ) 66 # define XBDLLEXPORT_DATA(type) __declspec( dllexport ) type 67 # define XBDLLEXPORT_CTORFN 68 # elif defined(XBUSINGDLL) 69 # define XBDLLEXPORT __declspec( dllimport ) 70 # define XBDLLEXPORT_DATA(type) __declspec( dllimport ) type 71 # define XBDLLEXPORT_CTORFN 74 # define XBDLLEXPORT_DATA(type) type 75 # define XBDLLEXPORT_CTORFN 81 # define XBDLLEXPORT_DATA(type) type 82 # define XBDLLEXPORT_CTORFN 87 # define XBDLLEXPORT_DATA(type) type 88 # define XBDLLEXPORT_CTORFN 92 #define XB_SINGLE_USER_MODE 0 95 #define XB_LOCK_HOLD 202 99 #ifdef HAVE_SYS_LOCKING_H 100 #include <sys/locking.h> 102 #defibe locking _locking 114 #define XB_XBASE_LOCK_MODE 200 115 #define XB_DBASE5_LOCK_MODE 201 116 #define XB_CLIPPER5_LOCK_MODE 202 117 #define XB_FOXPRO3_LOCK_MODE 203 119 #endif // XB_LOCKING_ON 127 #define XB_MIN(a, b) (((a) < (b)) ? (a) : (b)) 156 xbShort AddDbfToDbfList(
xbDbf *d,
const char *DatabaseName);
157 xbDbf * GetDbfPtr(
const char *Name );
158 xbShort DirectoryExistsInName(
const char *Name );
160 void DisplayError(
xbShort ErrorCode )
const;
161 static const char* GetErrorMessage(
xbShort ErrorCode );
166 xbDouble GetDouble(
const char *p );
167 xbLong GetLong (
const char *p );
168 xbULong GetULong (
const char *p );
169 xbShort GetShort (
const char *p );
170 xbULong GetHBFULong(
const char *p );
171 xbShort GetHBFShort (
const char *p );
173 void PutLong (
char *p,
const xbLong l );
174 void PutShort (
char *p,
const xbShort s );
175 void PutULong (
char *p,
const xbULong l );
176 void PutUShort(
char *p,
const xbUShort s );
177 void PutDouble(
char *p,
const xbDouble d );
182 xbShort GetLockRetryCount(){
return LockRetryCount; }
183 void SetLockRetryCount(
xbShort lrc ) { LockRetryCount = lrc; }
185 xbShort GetLockMode() {
return LockMode; }
205 #if defined(XB_EXPRESSIONS) 209 #if defined(XB_INDEX_ANY) 230 #if defined(XB_FILTERS) && !defined(XB_INDEX_ANY) 231 #error XB_FILTERS cant be used without index support 232 #elif defined(XB_FILTERS) 236 #endif // __XB_XBASE_H__
xbXBase class
Definition: xbase64.h:152
xbDbList * FreeDbfList
Definition: xbase64.h:191
void SetDefaultDateFormat(const xbString &f)
Definition: xbase64.h:163
xbShort EndianType
Definition: xbase64.h:192
char * DbfName
Definition: xbase64.h:145
xbShort GetEndianType()
Definition: xbase64.h:159
#define XBDLLEXPORT
Definition: xbase64.h:86
long xbLong
Definition: xbtypes.h:61
short int xbShort
xbShort type
Definition: xbtypes.h:60
xbString & GetDefaultDateFormat()
Definition: xbase64.h:162
xbDbList * NextDbf
Definition: xbase64.h:144
xbDbList struct
Definition: xbase64.h:143
unsigned long int xbULong
xbULong type
Definition: xbtypes.h:50
xbString class
Definition: xbstring.h:63
double xbDouble
xbDouble type
Definition: xbtypes.h:73
unsigned short int xbUShort
xbUShort type
Definition: xbtypes.h:55
xbDbf * dbf
Definition: xbase64.h:146
long xbOffT
Definition: xbtypes.h:97
xbMH struct
Definition: xbdbf.h:190
xbDbList * DbfList
Definition: xbase64.h:190