Xbase64 Class Library
3.1.2
|
Go to the documentation of this file.
42 #ifndef __XB_XBASE_H__
43 #define __XB_XBASE_H__
45 #ifdef __GNU_LesserG__
58 #if defined(__WIN32__)
64 #if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__GNU_LesserC__)
66 # define XBDLLEXPORT __declspec( dllexport )
67 # define XBDLLEXPORT_DATA(type) __declspec( dllexport ) type
68 # define XBDLLEXPORT_CTORFN
69 # elif defined(XBUSINGDLL)
70 # define XBDLLEXPORT __declspec( dllimport )
71 # define XBDLLEXPORT_DATA(type) __declspec( dllimport ) type
72 # define XBDLLEXPORT_CTORFN
75 # define XBDLLEXPORT_DATA(type) type
76 # define XBDLLEXPORT_CTORFN
82 # define XBDLLEXPORT_DATA(type) type
83 # define XBDLLEXPORT_CTORFN
88 # define XBDLLEXPORT_DATA(type) type
89 # define XBDLLEXPORT_CTORFN
93 #define XB_SINGLE_USER_MODE 0
96 #define XB_LOCK_HOLD 202
100 #ifdef HAVE_SYS_LOCKING_H
101 #include <sys/locking.h>
103 #defibe locking _locking
115 #define XB_XBASE_LOCK_MODE 200
116 #define XB_DBASE5_LOCK_MODE 201
117 #define XB_CLIPPER5_LOCK_MODE 202
118 #define XB_FOXPRO3_LOCK_MODE 203
120 #endif // XB_LOCKING_ON
128 #define XB_MIN(a, b) (((a) < (b)) ? (a) : (b))
157 xbShort AddDbfToDbfList(
xbDbf *d,
const char *DatabaseName);
158 xbDbf * GetDbfPtr(
const char *Name );
159 xbShort DirectoryExistsInName(
const char *Name );
161 void DisplayError(
xbShort ErrorCode )
const;
162 static const char* GetErrorMessage(
xbShort ErrorCode );
167 xbDouble GetDouble(
const char *p );
168 xbLong GetLong (
const char *p );
169 xbULong GetULong (
const char *p );
170 xbShort GetShort (
const char *p );
171 xbULong GetHBFULong(
const char *p );
172 xbShort GetHBFShort (
const char *p );
174 void PutLong (
char *p,
const xbLong l );
175 void PutShort (
char *p,
const xbShort s );
176 void PutULong (
char *p,
const xbULong l );
177 void PutUShort(
char *p,
const xbUShort s );
178 void PutDouble(
char *p,
const xbDouble d );
183 xbShort GetLockRetryCount(){
return LockRetryCount; }
184 void SetLockRetryCount(
xbShort lrc ) { LockRetryCount = lrc; }
186 xbShort GetLockMode() {
return LockMode; }
206 #if defined(XB_EXPRESSIONS)
210 #if defined(XB_INDEX_ANY)
231 #if defined(XB_FILTERS) && !defined(XB_INDEX_ANY)
232 #error XB_FILTERS cant be used without index support
233 #elif defined(XB_FILTERS)
237 #endif // __XB_XBASE_H__
void SetDefaultDateFormat(const xbString &f)
Definition: xbase64.h:164
xbString & GetDefaultDateFormat()
Definition: xbase64.h:163
xbMH struct
Definition: xbdbf.h:190
#define XBDLLEXPORT
Definition: xbase64.h:87
xbDbList * NextDbf
Definition: xbase64.h:145
double xbDouble
xbDouble type
Definition: xbtypes.h:73
unsigned long int xbULong
xbULong type
Definition: xbtypes.h:50
short int xbShort
xbShort type
Definition: xbtypes.h:60
long xbLong
Definition: xbtypes.h:61
xbDbList * FreeDbfList
Definition: xbase64.h:192
xbDbf * dbf
Definition: xbase64.h:147
xbDbList struct
Definition: xbase64.h:144
char * DbfName
Definition: xbase64.h:146
unsigned short int xbUShort
xbUShort type
Definition: xbtypes.h:55
xbDbList * DbfList
Definition: xbase64.h:191
long xbOffT
Definition: xbtypes.h:98
xbShort EndianType
Definition: xbase64.h:193
xbShort GetEndianType()
Definition: xbase64.h:160
xbXBase class
Definition: xbase64.h:153
xbString class
Definition: xbstring.h:63