19#ifdef CMAKE_COMPILER_IS_GNUCC
26#define XB_READ_WRITE 1
31#define XB_SINGLE_USER 0
32#define XB_MULTI_USER 1
62 const xbString& GetDirectory()
const;
64 const xbString& GetFqFileName()
const;
67 xbInt16 CreateUniqueFileName(
const xbString &sDirIn,
const xbString &sExtIn,
xbString &sFqnOut, xbInt16 iOption = 0 );
69 xbInt16 DetermineXbaseTableVersion(
unsigned char cFileTypeByte )
const;
70 xbInt16 DetermineXbaseMemoVersion(
unsigned char cFileTypeByte )
const;
72 xbDouble eGetDouble (
const char *p )
const;
73 xbInt32 eGetInt32 (
const char *p )
const;
74 xbUInt32 eGetUInt32 (
const char *p )
const;
75 xbInt16 eGetInt16 (
const char *p )
const;
76 xbUInt16 eGetUInt16 (
const char *p )
const;
77 void ePutDouble (
char *p,
xbDouble d );
78 void ePutInt32 (
char *p, xbInt32 l );
79 void ePutUInt32 (
char *p, xbUInt32 ul );
80 void ePutInt16 (
char *p, xbInt16 s );
81 void ePutUInt16 (
char *p, xbUInt16 s );
83 xbBool FileExists ()
const;
84 xbBool FileExists ( xbInt16 iOption )
const;
86 xbBool FileExists (
const xbString &sFileName, xbInt16 iOption )
const;
87 xbBool FileIsOpen ()
const;
89 xbUInt32 GetBlockSize ()
const;
91 xbInt16 GetFileDirPart (
xbString &sFileDirPartOut )
const;
92 xbInt16 GetFileDirPart (
const xbString &sCompleteFileNameIn,
xbString &sFileDirPartOut )
const;
93 xbInt16 GetFileExtPart (
xbString &sFileExtPartOut )
const;
94 xbInt16 GetFileExtPart (
const xbString &sCompleteFileNameIn,
xbString &sFileExtPartOut )
const;
95 xbInt16 GetFileMtime ( time_t &mtime );
96 xbInt16 GetFileNamePart(
xbString &sFileNamePartOut )
const;
97 xbInt16 GetFileNamePart(
const xbString &sCompleteFileNameIn,
xbString &sFileNamePartOut )
const;
98 xbInt16 GetFileSize ( xbUInt64 &ullFileSize );
99 xbInt16 GetFileType (
xbString &sFileType )
const;
102 xbInt16 GetOpenMode ()
const;
103 xbInt16 GetShareMode ()
const;
106 xbInt16 GetXbaseFileTypeByte(
const xbString &sFileName, xbInt16 &iVersion );
107 xbInt16 GetXbaseFileTypeByte(
const xbString &sFileName,
unsigned char &cFileTypeByte );
108 xbInt16 GetXbaseFileTypeByte(
const xbString &sFileName,
unsigned char &cFileTypeByte, xbInt16 &iVersion );
110 xbInt16 NameSuffixMissing(
const xbString &sFileName, xbInt16 iOption )
const;
112 xbInt16 ReadBlock ( xbUInt32 ulBlockNo,
size_t readSize,
void *buf );
113 xbInt16 ReadBlock ( xbUInt32 ulBlockNo, xbUInt32 ulBlockSize,
size_t readSize,
void *buf );
115 xbInt16 SetBlockSize ( xbUInt32 ulBlockSize );
116 void SetDirectory (
const xbString &sDirectory);
117 void SetFileName (
const xbString &sFileName );
118 void SetFqFileName (
const xbString &sFqName );
119 xbInt16 SetHomeFolders();
121 xbInt16 WriteBlock ( xbUInt32 ulBlockNo,
size_t writeSize,
void *buf );
126 xbInt16 xbFgetc ( xbInt32 &c );
127 xbInt16 xbFgetc (
char &c );
128 xbInt16 xbFgets (
size_t lSize,
xbString &sLine );
132 xbInt16 xbFopen (
const xbString &sOpenMode, xbInt16 iShareMode );
133 xbInt16 xbFopen ( xbInt16 iOpenMode, xbInt16 iShareMode );
134 xbInt16 xbFopen (
const xbString &sMode,
const xbString &sFileName, xbInt16 iShareMode );
136 xbInt16 xbFputc ( xbInt32 c );
137 xbInt16 xbFputc ( xbInt32 c, xbInt32 iNoTimes );
138 xbInt16 xbFputs (
const xbString &s );
139 xbInt16 xbFread (
void *ptr,
size_t size,
size_t nmemb );
140 xbInt16 xbFseek ( xbInt64 llOffset, xbInt32 whence );
142 void xbFTurnOffFileBuffering();
144 xbInt16 xbReadUntil (
const char cDelim,
xbString &sOut );
145 xbInt16 xbRemove (
const xbString &sFileName, xbInt16 iOption );
146 xbInt16 xbRemove (
const xbString &sFileName );
152 xbInt16 xbFwrite (
const void *ptr,
size_t lSize,
size_t lNmemb );
154 xbInt16 xbTruncate ( xbInt64 llSize );
157 #ifdef XB_LOCKING_SUPPORT
158 xbInt16 xbLock ( xbInt16 iFunction, xbInt64 llOffset,
size_t stLen );
159 xbInt16 GetLockRetryCount()
const;
160 void SetLockRetryCount( xbInt16 iLockRetries );
163 #ifdef XB_DEBUG_SUPPORT
164 xbInt16 DumpBlockToDisk( xbUInt32 ulBlockNo,
size_t lBlockSize );
165 xbInt16 DumpMemToDisk (
char *p,
size_t lBlockSize );
179 xbUInt32 ulBlockSize;
185 #ifdef XB_LOCKING_SUPPORT
186 xbInt16 iLockRetries;
189 #ifdef HAVE_SETENDOFFILE_F
Class for handling low level file I/O.
Definition: xbfile.h:56
xbInt16 xbFopen(xbInt16 iOpenMode)
xbXBase * xbase
Definition: xbfile.h:171
Class for handling shared system variables.
Definition: xbssv.h:59
Class for handling string data.
Definition: xbstring.h:50
xbXbase class.
Definition: xbxbase.h:123
Definition: xbdate.cpp:19
double xbDouble
Definition: xbtypes.h:23
short int xbBool
Definition: xbtypes.h:24