50 #ifndef __XB_XBASE_H__
51 #define __XB_XBASE_H__
66 #define XDB_VERSION "2.0.0"
67 #define XBASE_VERSION "2.0.0"
71 #if defined(__WIN32__)
78 #if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__GNUC__)
80 # define XBDLLEXPORT __declspec( dllexport )
81 # define XBDLLEXPORT_DATA(type) __declspec( dllexport ) type
82 # define XBDLLEXPORT_CTORFN
83 # elif defined(XBUSINGDLL)
84 # define XBDLLEXPORT __declspec( dllimport )
85 # define XBDLLEXPORT_DATA(type) __declspec( dllimport ) type
86 # define XBDLLEXPORT_CTORFN
89 # define XBDLLEXPORT_DATA(type) type
90 # define XBDLLEXPORT_CTORFN
96 # define XBDLLEXPORT_DATA(type) type
97 # define XBDLLEXPORT_CTORFN
102 # define XBDLLEXPORT_DATA(type) type
103 # define XBDLLEXPORT_CTORFN
112 #if defined(XB_EXPRESSIONS)
135 #if defined(XB_EXPRESSIONS)
149 xbShort AddDbfToDbfList(
xbDbf *d,
const char *DatabaseName);
150 xbDbf * GetDbfPtr(
const char *Name );
151 xbShort DirectoryExistsInName(
const char *Name );
153 void DisplayError(
const xbShort ErrorCode )
const;
154 static const char* GetErrorMessage(
const xbShort ErrorNo );
157 xbDouble GetDouble(
const char *p );
158 xbLong GetLong (
const char *p );
159 xbULong GetULong (
const char *p );
160 xbShort GetShort (
const char *p );
161 void PutLong (
char *p,
const xbLong l );
162 void PutShort (
char *p,
const xbShort s );
163 void PutULong (
char *p,
const xbULong l );
164 void PutUShort(
char *p,
const xbUShort s );
165 void PutDouble(
char *p,
const xbDouble d );
172 #if defined(XB_INDEX_ANY)
184 #if defined(XB_FILTERS) && !defined(XB_INDEX_ANY)
185 #error XB_FILTERS cant be used without index support
186 #elif defined(XB_FILTERS)
196 #ifdef HAVE_SYS_LOCKING_H
197 #include <sys/locking.h>
213 #endif // __XB_XBASE_H__
xbXBase class
Definition: xbase.h:138
xbShort GetEndianType(void)
Definition: xbase.h:152
double xbDouble
xbDouble type
Definition: xtypes.h:76
xbDbList * FreeDbfList
Definition: xbase.h:143
xbShort EndianType
Definition: xbase.h:144
char * DbfName
Definition: xbase.h:127
xbDate class
Definition: xdate.h:78
#define XBDLLEXPORT
Definition: xbase.h:101
xbDbList * NextDbf
Definition: xbase.h:126
xbDbList struct
Definition: xbase.h:125
unsigned long int xbULong
xbULong type
Definition: xtypes.h:57
#define xbLong
Definition: xtypes.h:67
short int xbShort
xbShort type
Definition: xtypes.h:65
xbDbf * dbf
Definition: xbase.h:128
xbMH struct
Definition: dbf.h:201
unsigned short int xbUShort
xbUShort type
Definition: xtypes.h:61
xbDbList * DbfList
Definition: xbase.h:142