Xbase64 4.0.1
C++ Library for handling Xbase (DBF) format type files
|
Base class for handling dbf files/tables. More...
#include <xbdbf.h>
Public Member Functions | |
xbDbf (xbXBase *x) | |
Constructor. More... | |
virtual | ~xbDbf () |
Destructor. More... | |
virtual xbInt16 | Abort () |
Abort any uncommited changes for the current record buffer. More... | |
virtual xbInt16 | AppendRecord () |
Append the current record to the data file. More... | |
virtual xbInt16 | BlankRecord () |
Blank the record buffer. More... | |
virtual xbInt16 | Commit () |
Commit updates to disk. More... | |
virtual xbInt16 | Close () |
Close DBF file/table. More... | |
virtual xbInt16 | CopyDbfStructure (xbDbf *dNewTable, const xbString &sTableName, const xbString &sTableAlias, xbInt16 iOverlay, xbInt16 iShareMode) |
Copy table (dbf) file structure. More... | |
virtual xbInt16 | CreateTable (const xbString &sTableName, const xbString &sAlias, xbSchema *pSchema, xbInt16 iOverlay, xbInt16 iShareMode)=0 |
virtual xbInt16 | DeleteTable () |
Delete a table. More... | |
virtual xbInt16 | DeleteAll (xbInt16 iOption) |
Delete or undelete all records in a dbf file (table). More... | |
virtual xbInt16 | DeleteAllRecords () |
Delete all records. More... | |
virtual xbInt16 | DeleteRecord () |
Delete the current record. More... | |
virtual xbInt16 | DumpHeader (xbInt16 iOption) |
Dump dbf file header. More... | |
virtual xbInt16 | DumpRecord (xbUInt32 ulRecNo, xbInt16 iOutputDest=0, xbInt16 iOutputFmt=0) |
Dump record. More... | |
virtual xbInt16 | GetAutoCommit () const |
Get auto commit setting. More... | |
virtual xbInt16 | GetAutoCommit (xbInt16 iOption) const |
Get auto commit setting. More... | |
virtual xbBool | GetBof () |
Get a pointer to the current index object. More... | |
virtual xbUInt32 | GetCurRecNo () const |
Return the current record number. More... | |
virtual xbInt16 | GetDbfStatus () const |
Return the current dbf status. More... | |
virtual xbBool | GetEof () |
Return true if dbf file empty or positioned to the last record. More... | |
virtual xbInt32 | GetFieldCnt () const |
Return the number of fields in the table. More... | |
virtual xbInt16 | GetFirstRecord () |
Get the first record. More... | |
virtual xbInt16 | GetFirstRecord (xbInt16 iOption) |
Get the first record. More... | |
virtual xbUInt16 | GetHeaderLen () const |
virtual xbInt16 | GetLastRecord () |
Get the last record. More... | |
virtual xbInt16 | GetLastRecord (xbInt16 iOption) |
Get the last record. More... | |
virtual xbInt16 | GetNextRecord () |
Get the next record. More... | |
virtual xbInt16 | GetNextRecord (xbInt16 iOption) |
Get the next record. More... | |
virtual xbInt16 | GetNextRecord (xbInt16 iOption, xbUInt32 ulStartRec) |
Get the next record. More... | |
virtual xbInt16 | GetPrevRecord () |
Get the previous record. More... | |
virtual xbInt16 | GetPrevRecord (xbInt16 iOption) |
Get the previous record. More... | |
virtual xbInt16 | GetRecord (xbUInt32 ulRecNo) |
Get record for specified record number. More... | |
virtual xbInt16 | GetRecordCnt (xbUInt32 &ulRecCnt) |
Get the current number of records in the dbf data file. More... | |
virtual char * | GetRecordBuf (xbInt16 iOpt=0) const |
Get pointer to record buffer. More... | |
virtual xbUInt16 | GetRecordLen () const |
Get the dbf record length. More... | |
virtual const xbString & | GetTblAlias () const |
Get the table alias. More... | |
virtual xbInt16 | GetVersion () const =0 |
virtual xbXBase * | GetXbasePtr () const |
Get the pointer to the xbXbase structure,. More... | |
virtual xbBool | MemoFieldsExist () const |
Check for existence of any memo fields. More... | |
virtual xbInt16 | Open (const xbString &sTableName) |
Open a table/dbf file. More... | |
virtual xbInt16 | Open (const xbString &sTableName, const xbString &sAlias) |
Open a table/dbf file. More... | |
virtual xbInt16 | Open (const xbString &sTableName, const xbString &sAlias, xbInt16 iOpenMode, xbInt16 iShareMode)=0 |
virtual xbInt16 | Pack () |
Pack dbf file. More... | |
virtual xbInt16 | Pack (xbUInt32 &ulDeletedRecCnt) |
Pack dbf file. More... | |
virtual xbInt16 | PutRecord () |
Write the current record to disk. More... | |
virtual xbInt16 | PutRecord (xbUInt32 ulRecNo) |
Write record to disk. More... | |
virtual xbInt16 | RecordDeleted (xbInt16 iOpt=0) const |
Return record deletion status. More... | |
virtual xbInt16 | Rename (const xbString sNewName)=0 |
virtual xbInt16 | SetAutoCommit (xbInt16 iAutoCommit) |
Set auto commit. More... | |
virtual xbInt16 | UndeleteAllRecords () |
Set auto lock. More... | |
virtual xbInt16 | UndeleteRecord () |
Undelete one record. More... | |
virtual xbInt16 | Zap () |
Zap (remove) everything from the file,. More... | |
virtual xbInt16 | GetField (xbInt16 iFieldNo, xbString &sFieldValue, xbInt16 iRecBufSw) const |
Get field data for field number. More... | |
virtual xbInt16 | GetField (xbInt16 iFieldNo, xbString &sFieldValue) const |
Get field data for field number. More... | |
virtual xbInt16 | GetField (const xbString &sFieldName, xbString &sFieldValue) const |
Get xbString field for field name. More... | |
virtual xbInt16 | GetFieldDecimal (xbInt16 iFieldNo, xbInt16 &iFieldDecimal) const |
Get decimal for field number. More... | |
virtual xbInt16 | GetFieldDecimal (const xbString &sFieldName, xbInt16 &iFieldDecimal) const |
Get decimal for field name. More... | |
virtual xbInt16 | GetFieldLen (xbInt16 iFieldNo, xbInt16 &iFieldLen) const |
Get field length for field number. More... | |
virtual xbInt16 | GetFieldLen (const xbString &sFieldName, xbInt16 &iFieldLen) const |
Get field length for field name. More... | |
virtual xbInt16 | GetFieldName (xbInt16 iFieldNo, xbString &sFieldName) const |
Returns the name of the specified field. More... | |
virtual xbInt16 | GetFieldNo (const xbString &sFieldName, xbInt16 &iFieldNo) const |
Get the field number for name. More... | |
virtual xbInt16 | GetFieldNo (const xbString &sFieldName) const |
Get field ID number for a given field name. More... | |
virtual xbInt16 | GetFieldType (xbInt16 iFieldNo, char &cFieldType) const |
Get field type for field number. More... | |
virtual xbInt16 | GetFieldType (const xbString &sFieldName, char &cFieldType) const |
Get field type for field name. More... | |
virtual xbInt16 | PutField (const xbString &sFieldName, const xbString &sFieldData) |
Put field for field name. More... | |
virtual xbInt16 | PutField (xbInt16 iFieldNo, const xbString &sFieldData) |
Put field for field number. More... | |
virtual xbInt16 | PutLogicalField (xbInt16 iFieldNo, const xbString &sFieldData) |
Put logical field for field number. More... | |
virtual xbInt16 | PutLogicalField (const xbString &sFieldName, const xbString &sFieldData) |
Put logical field for field name. More... | |
virtual xbInt16 | GetLogicalField (xbInt16 iFieldNo, xbString &sFieldData) const |
Get logical field for field number. More... | |
virtual xbInt16 | GetLogicalField (const xbString &sFieldName, xbString &sFieldData) const |
Get logical field for field name. More... | |
virtual xbInt16 | PutLogicalField (xbInt16 iFieldNo, xbBool bFieldData) |
Put logical field for field number. More... | |
virtual xbInt16 | PutLogicalField (const xbString &sFieldName, xbBool bFieldData) |
Put logical field for field name. More... | |
virtual xbInt16 | GetLogicalField (xbInt16 iFieldNo, xbBool &bFieldData) const |
Get logical field for field number. More... | |
virtual xbInt16 | GetLogicalField (xbInt16 iFieldNo, xbBool &bFieldData, xbInt16 iRecBufSw) const |
Get logical field for field number. More... | |
virtual xbInt16 | GetLogicalField (const xbString &sFieldName, xbBool &bFieldData) const |
Get logical field for field name. More... | |
virtual xbInt16 | GetLongField (xbInt16 iFieldNo, xbInt32 &lFieldValue) const |
Get long field for field number. More... | |
virtual xbInt16 | GetLongField (const xbString &sFieldName, xbInt32 &lFieldValue) const |
Get long field for field name. More... | |
virtual xbInt16 | PutLongField (xbInt16 iFieldNo, xbInt32 lFieldValue) |
Put long field for field number. More... | |
virtual xbInt16 | PutLongField (const xbString &sFieldName, xbInt32 lFieldValue) |
Put long field for field name. More... | |
virtual xbInt16 | GetULongField (xbInt16 iFieldNo, xbUInt32 &lFieldValue) const |
Get unsigned long field for field number. More... | |
virtual xbInt16 | GetULongField (const xbString &sFieldName, xbUInt32 &lFieldValue) const |
Get unsigned long field for field name. More... | |
virtual xbInt16 | PutULongField (xbInt16 iFieldNo, xbUInt32 lFieldValue) |
Put unsigned long field for field number. More... | |
virtual xbInt16 | PutULongField (const xbString &sFieldNo, xbUInt32 lFieldValue) |
Put unsigned long field for field name. More... | |
virtual xbInt16 | GetDoubleField (xbInt16 FieldNo, xbDouble &dFieldValue) const |
Get xbDouble field for field number. More... | |
virtual xbInt16 | GetDoubleField (xbInt16 FieldNo, xbDouble &dFieldValue, xbInt16 iRecBufSw) const |
Get xbDouble field for field number. More... | |
virtual xbInt16 | GetDoubleField (const xbString &sFieldName, xbDouble &dFieldValue) const |
Get xbDouble field for field name. More... | |
virtual xbInt16 | PutDoubleField (xbInt16 FieldNo, xbDouble dFieldValue) |
Put double field for field number. More... | |
virtual xbInt16 | PutDoubleField (const xbString &FieldName, xbDouble dFieldValue) |
Put double field for field name. More... | |
virtual xbInt16 | GetFloatField (xbInt16 iFieldNo, xbFloat &fFieldValue) const |
Get xbFloat field for field number. More... | |
virtual xbInt16 | GetFloatField (const xbString &sFieldName, xbFloat &fFieldValue) const |
Get xbFloat field for field name. More... | |
virtual xbInt16 | PutFloatField (xbInt16 iFieldNo, xbFloat fFieldValue) |
Put float field for field number. More... | |
virtual xbInt16 | PutFloatField (const xbString &sFieldName, xbFloat fFieldValue) |
Put float field for field name. More... | |
virtual xbInt16 | GetDateField (xbInt16 iFieldNo, xbDate &dt) const |
Get xbDate field for field number. More... | |
virtual xbInt16 | GetDateField (const xbString &sFieldName, xbDate &dt) const |
Get xbDate field for field name. More... | |
virtual xbInt16 | PutDateField (xbInt16 iFieldNo, const xbDate &dt) |
Put date field for field number. More... | |
virtual xbInt16 | PutDateField (const xbString &sFieldName, const xbDate &dt) |
Put date field for field name. More... | |
virtual xbInt16 | GetNullSts (xbInt16 iFieldNo, xbBool &bIsNull) const |
Get field null status. More... | |
virtual xbInt16 | GetNullSts (const xbString &sFieldName, xbBool &bIsNull) const |
Get field null status. More... | |
virtual xbInt16 | GetNullSts (xbInt16 iFieldNo, xbBool &bIsNull, xbInt16 iRecBufSw) const |
Get field null status. More... | |
const xbString & | GetDirectory () const |
Get the directory name. More... | |
const xbString & | GetFileName () const |
Get the file name. More... | |
const xbString & | GetFqFileName () const |
Get the fully qualified file name. More... | |
xbInt16 | CreateUniqueFileName (const xbString &sDirIn, const xbString &sExtIn, xbString &sFqnOut, xbInt16 iOption=0) |
Create a unique file name. More... | |
xbInt16 | DetermineXbaseTableVersion (unsigned char cFileTypeByte) const |
Determine xbase dbf version. More... | |
xbInt16 | DetermineXbaseMemoVersion (unsigned char cFileTypeByte) const |
Determine which version the memo (dbt) file is. More... | |
xbDouble | eGetDouble (const char *p) const |
Get a portable double value. More... | |
xbInt32 | eGetInt32 (const char *p) const |
Get a portable long value. More... | |
xbUInt32 | eGetUInt32 (const char *p) const |
Get a portable unsigned long value. More... | |
xbInt16 | eGetInt16 (const char *p) const |
Get a portable short value. More... | |
xbUInt16 | eGetUInt16 (const char *p) const |
Get a portable unsigned short value. More... | |
void | ePutDouble (char *p, xbDouble d) |
Write a portable double value to memory location. More... | |
void | ePutInt32 (char *p, xbInt32 l) |
Write a portable long value to memory location. More... | |
void | ePutUInt32 (char *p, xbUInt32 ul) |
Write a portable unsigned long value to memory location. More... | |
void | ePutInt16 (char *p, xbInt16 s) |
Write a portable short value to memory location. More... | |
void | ePutUInt16 (char *p, xbUInt16 s) |
Write a portable unsigned short value to memory location. More... | |
xbBool | FileExists () const |
Determines if a file exists. More... | |
xbBool | FileExists (xbInt16 iOption) const |
Determines if a file exists. More... | |
xbBool | FileExists (const xbString &sFileName) const |
Determines if a file exists. More... | |
xbBool | FileExists (const xbString &sFileName, xbInt16 iOption) const |
Determines if a file exists. More... | |
xbBool | FileIsOpen () const |
Determines if file is open. More... | |
xbUInt32 | GetBlockSize () const |
Get the block size. More... | |
xbInt16 | GetFileDirPart (xbString &sFileDirPartOut) const |
Get the directory part of the file name. More... | |
xbInt16 | GetFileDirPart (const xbString &sCompleteFileNameIn, xbString &sFileDirPartOut) const |
Get the directory part of the file name. More... | |
xbInt16 | GetFileExtPart (xbString &sFileExtPartOut) const |
Get the extension part of the file name. More... | |
xbInt16 | GetFileExtPart (const xbString &sCompleteFileNameIn, xbString &sFileExtPartOut) const |
Get the extension part of the file name. More... | |
xbInt16 | GetFileMtime (time_t &mtime) |
Get the time of last file modification timestamp as reported by the OS. More... | |
xbInt16 | GetFileNamePart (xbString &sFileNamePartOut) const |
Get the name part of the file name. More... | |
xbInt16 | GetFileNamePart (const xbString &sCompleteFileNameIn, xbString &sFileNamePartOut) const |
Get the name part of the file name. More... | |
xbInt16 | GetFileSize (xbUInt64 &ullFileSize) |
Get the size of the file as reported by the OS. More... | |
xbInt16 | GetFileType (xbString &sFileType) const |
Get the file type aka Capitalized file extension. More... | |
xbInt16 | GetOpenMode () const |
Get the open mode of the file. More... | |
xbInt16 | GetShareMode () const |
Get the share mode of the file. More... | |
xbInt16 | GetXbaseFileTypeByte (const xbString &sFileName, xbInt16 &iVersion) |
Get the file type byte and version of the dbf file. More... | |
xbInt16 | GetXbaseFileTypeByte (const xbString &sFileName, unsigned char &cFileTypeByte) |
Get the file type byte and version of the dbf file. More... | |
xbInt16 | GetXbaseFileTypeByte (const xbString &sFileName, unsigned char &cFileTypeByte, xbInt16 &iVersion) |
Get the file type byte and version of the dbf file. More... | |
xbInt16 | NameSuffixMissing (const xbString &sFileName, xbInt16 iOption) const |
Determines status of file extension. More... | |
xbInt16 | ReadBlock (xbUInt32 ulBlockNo, size_t readSize, void *buf) |
Read a block of data from file. More... | |
xbInt16 | ReadBlock (xbUInt32 ulBlockNo, xbUInt32 ulBlockSize, size_t readSize, void *buf) |
Read a block of data from file. More... | |
xbInt16 | SetBlockSize (xbUInt32 ulBlockSize) |
Set the block size. More... | |
void | SetDirectory (const xbString &sDirectory) |
Set the directory. More... | |
void | SetFileName (const xbString &sFileName) |
Set the filename. More... | |
void | SetFqFileName (const xbString &sFqName) |
Set the fully qualifed filename. More... | |
xbInt16 | SetHomeFolders () |
Set Home Folders. More... | |
xbInt16 | WriteBlock (xbUInt32 ulBlockNo, size_t writeSize, void *buf) |
Write a block of data to file. More... | |
xbInt16 | xbFclose () |
Xbase wrapper for standard libary fclose. More... | |
xbInt16 | xbFeof () |
Xbase wrapper for standard libary feof. More... | |
xbInt16 | xbFflush () |
Xbase wrapper for standard libary fflush. More... | |
xbInt16 | xbFgetc (xbInt32 &c) |
Xbase wrapper for standard libary fgetc. More... | |
xbInt16 | xbFgetc (char &c) |
Xbase wrapper for standard libary fgetc. More... | |
xbInt16 | xbFgets (size_t lSize, xbString &sLine) |
Xbase wrapper for standard libary fgets. More... | |
xbInt16 | xbFopen (xbInt16 iOpenMode) |
xbInt16 | xbFopen (const xbString &sOpenMode, xbInt16 iShareMode) |
Xbase wrapper for standard libary fopen. More... | |
xbInt16 | xbFopen (xbInt16 iOpenMode, xbInt16 iShareMode) |
Xbase wrapper for standard libary fopen. More... | |
xbInt16 | xbFopen (const xbString &sMode, const xbString &sFileName, xbInt16 iShareMode) |
Xbase wrapper for standard libary fopen. More... | |
xbInt16 | xbFputc (xbInt32 c) |
Xbase wrapper for standard libary fputc. More... | |
xbInt16 | xbFputc (xbInt32 c, xbInt32 iNoTimes) |
Xbase wrapper for standard libary fputc. More... | |
xbInt16 | xbFputs (const xbString &s) |
Xbase wrapper for standard libary fputs. More... | |
xbInt16 | xbFread (void *ptr, size_t size, size_t nmemb) |
Xbase wrapper for standard libary fread. More... | |
xbInt16 | xbFseek (xbInt64 llOffset, xbInt32 whence) |
Xbase wrapper for standard libary fseek. More... | |
size_t | xbFtell () |
Xbase wrapper for standard libary ftell. More... | |
void | xbFTurnOffFileBuffering () |
Turn off file buffering. More... | |
xbInt16 | xbReadUntil (const char cDelim, xbString &sOut) |
Read file until a particular character is encountered on input stream. More... | |
xbInt16 | xbRemove (const xbString &sFileName, xbInt16 iOption) |
Delete file. More... | |
xbInt16 | xbRemove (const xbString &sFileName) |
Delete file. More... | |
xbInt16 | xbRemove () |
Delete file. More... | |
xbInt16 | xbRename (const xbString &sOldName, const xbString &sNewName) |
Rename file. More... | |
void | xbRewind () |
Xbase wrapper for rewind. More... | |
xbInt16 | xbFwrite (const void *ptr, size_t lSize, size_t lNmemb) |
Xbase wrapper for standard libary fwrite. More... | |
xbInt16 | xbTruncate (xbInt64 llSize) |
Xbase wrapper for ftruncate. More... | |
void | DisplayError (xbInt16 ErrorCode) const |
Display error message on console for a given error number. More... | |
xbString & | GetDefaultDateFormat () const |
Get the default date format. More... | |
xbString & | GetDataDirectory () const |
Get the current data directory. More... | |
xbString & | GetTempDirectory () const |
Get the current temp directory. More... | |
void | GetHomeDir (xbString &sHomeDirOut) |
Get home directory. More... | |
xbInt16 | GetEndianType () const |
Get the Endian type. More... | |
const char * | GetErrorMessage (xbInt16 ErrorCode) const |
Get an error message. More... | |
char | GetPathSeparator () const |
Get the OS dependent path separator. More... | |
void | SetDataDirectory (const xbString &sDataDirectory) |
Set the data directory. More... | |
void | SetDefaultDateFormat (const xbString &sDefaultDateFormat) |
Set the default date format. More... | |
void | SetTempDirectory (const xbString &sTempDirectory) |
Set the temp directory. More... | |
xbBool | BitSet (unsigned char c, xbInt16 iBitNo) const |
Check a bit in a one byte field and see if it is set. More... | |
void | BitDump (unsigned char c) const |
void | BitDump (char c) const |
xbBool | GetDefaultAutoCommit () const |
Get the default auto commit setting. More... | |
void | SetDefaultAutoCommit (xbBool bDefaultAutoCommit) |
Set the default auto commit. More... | |
xbString & | GetLogDirectory () const |
xbString & | GetLogFileName () const |
void | SetLogDirectory (const xbString &sLogDirectory) |
void | SetLogFileName (const xbString &sLogFileName) |
xbBool | GetMultiUser () const |
Get the multi user setting. More... | |
void | SetMultiUser (xbBool bMultiUser) |
Get the multi user setting. More... | |
Static Public Attributes | |
static const char * | ErrorCodeText [] |
Protected Member Functions | |
virtual xbInt16 | ReadHeader (xbInt16 iFilePositionOption, xbInt16 iReadOption) |
Read dbf file header information. More... | |
virtual xbInt16 | GetRawField (xbInt16 iFieldNo, char *Buf, xbUInt32 BufSize, xbInt16 iRecBufSw) const |
Get raw field data for field number. More... | |
virtual void | InitVars () |
virtual xbInt16 | SetVersion ()=0 |
virtual xbInt16 | ValidateSchema (xbSchema *s)=0 |
xbInt16 | WriteHeader (xbInt16 iPositionOption, xbInt16 iWriteOption) |
void | SetEndianType () |
Set the endian type. More... | |
Protected Attributes | |
xbUInt32 | ulCurRec |
xbInt16 | iAutoCommit |
xbInt16 | iFileVersion |
xbString | sAlias |
xbInt16 | iNoOfFields |
xbInt16 | iDbfStatus |
xbSchemaRec * | SchemaPtr |
char * | RecBuf |
char * | RecBuf2 |
unsigned char | cVersion |
char | cUpdateYY |
char | cUpdateMM |
char | cUpdateDD |
xbUInt32 | ulNoOfRecs |
xbUInt16 | uiHeaderLen |
xbUInt16 | uiRecordLen |
char | cTransactionFlag |
char | cEncryptionFlag |
char | cIndexFlag |
char | cLangDriver |
xbXBase * | xbase |
Static Protected Attributes | |
static xbInt16 | iEndianType = 0 |
static xbString | sNullString = "" |
Base class for handling dbf files/tables.
The xbDbf class is used as a base class for accessing dbf files.
In line with relational theory, a each dbf file can be considered as a table. The documentation uses the terms dbf and table interchangeably.
This module handles methods for accessing and updating dbf files.
The class is designed to support additional file layouts with a minimal amount of effort. If you are wanting to update the library to support a new dbf file type not currently supported by the library, create a derived class using xbDbf as a base class and modify methods needed to support the new dbf file version.
See the following for examples on how to start on this:
xbDbf3 is a derived class from xbDbf and supports the original Dbase III+ file version.
xbDbf4 is a derived class from xbDbf and supports the original Dbase IV file version.
xb::xbDbf::xbDbf | ( | xbXBase * | x | ) |
Constructor.
x | Pointer to xbXbase |
|
virtual |
Destructor.
|
virtual |
Abort any uncommited changes for the current record buffer.
|
virtual |
Append the current record to the data file.
This method attempts to append the contents of the current record buffer to the end of the DBF file, updates the file date, number of records in the file and updates any open indices associated with this data file.
To add a record, an application would typically blank the record buffer, update various fields in the record buffer, then append the record.
The append method performs the following tasks:
1) Create new index key values
2) Lock the table
3) Lock append bytes
4) Lock indices
5) Read the dbf header
6) Check for dup keys
7) Calc last update date, no of recs
8) Add keys
9) Unlock indices
10) Update file header
11) Unlock file header
12) Append record
13) Unlock append bytes
Note: Locking memo files is not needed as the memo file updates are handled outside of the append method.
|
inherited |
|
inherited |
|
inherited |
Check a bit in a one byte field and see if it is set.
c | One byte char field to examine. |
iBitNo | which bit to examine. |
|
virtual |
Blank the record buffer.
This method would typically be called to initialize the record buffer before updates are applied to append a new record.
|
virtual |
Close DBF file/table.
This routine flushes any remaining updates to disk, closes the DBF file and any associated memo and index files.
|
virtual |
|
virtual |
Copy table (dbf) file structure.
This routine will copy the structure of a dbf file and if successful return a pointer to the new table in an open state.
dNewTable | Reference to new table object. |
sNewTableName | New table (dbf) name. |
sNewTableAlias | Alias name of new table. |
iOverlay | xbTrue - Overlay existing file. xbFalse - Don't overlay existing file. |
iShareMode | XB_SINGLE_USER XB_MULTI_USER |
|
pure virtual |
|
inherited |
Create a unique file name.
Given a directory and file extension as inputs, create a unique file name.
sDirIn | Directory |
sExtIn | File Extension |
sFqnOut | A fully qualifed unique file name as output |
Create a unique file name.
Given a directory and file extension as inputs, create a unique file name.
sDirIn | Directory |
sExtIn | File Extension |
iOption | 0 - look only for one file for a given directory and extension 1 - if file name extension is "dbf" or "DBF", verify unique dbt or DBT (memo) file is also available |
sFqnOut | A fully qualifed unique file name as output |
|
virtual |
Delete or undelete all records in a dbf file (table).
This routine deletes or un-deletes all records. The xbase file format contains a leading one byte character used for flagging a record as deleted. When a record is deleted, it's not physically removed from the file, the first byte is flagged as deleted.
iOption | 0 - Delete all records. 1 - Un-delete all deleted records. |
|
virtual |
|
virtual |
Delete the current record.
This routine flags the current record for deletion if it's not already flagged.
|
virtual |
Delete a table.
This routine deletes a given table, associated index files if any, the memo file if any and the .INF file if any.
|
inherited |
Determine which version the memo (dbt) file is.
This routine uses the first byte in the dbf file to determine which memo file version is in use. The main difference between version 3 and 4 is that version 4 will reuse blocks if they become available. Version 3 does not.
cFileTypeByte | is an output field and is one of: 0 - none 3 - Dbase III+ 4 - Dbase IV |
|
inherited |
Determine xbase dbf version.
This routine is used to determine which version of the Xbase classes can be used for a given DBF file.
It attempts to use the highest version compiled into the library.
References:
This routine uses the first byte from the dbf file.
Per DBase documentation:
Valid dBASE for Windows table file, bits 0-2 indicate version number: 3 for dBASE Level 5, 4 for dBASE Level 7.
Bit 3 and bit 7 indicate presence of a dBASE IV or dBASE for Windows memo file;
Bits 4-6 indicate the presence of a dBASE IV SQL table;
Bit 7 indicates the presence of any .DBT memo file (either a dBASE III PLUS type or a dBASE IV or dBASE for Windows memo file).
Bachmann spec (used extensively in library build), page 7 - does not match DBase documentation
returns
0 - unknown
3 - Dbase level 3
4 - Dbase level 4
5 - Dbase Level 5 (future)
7 - Dbase Level 7 (future)
1x - Clipper files (future)
2x - Foxbase files (future)
|
inherited |
Display error message on console for a given error number.
iErrorCode | Error number to reference |
|
virtual |
Dump dbf file header.
This routine dumps dbf header information to the console.
iOption | 1 = Print header only 2 = Field data only 3 = Header and Field data 4 = Header, Field and Memo header data if applicable |
|
virtual |
Dump record.
Dump the contents of the specified record
ulRecNo | Record number of record to be dumped. |
iOutputDest | 0 = stdout 1 = Syslog 2 = Both |
iOutputFmt | 0 = with field names 1 = 1 line per rec, no field names 2 = 1 line per rec, first line is a list of field names. |
|
inherited |
Get a portable double value.
This routine returns a double value from an 8 byte character stream, accounting for endian type.
Converts a double (64 bit floating point) value stored at p from a portable format to the machine format.
p | pointer to memory containing the portable double value |
|
inherited |
Get a portable short value.
This routine returns a short int value from a 2 byte character stream, accounting for endian type.
p | pointer to memory containing the portable long value |
|
inherited |
Get a portable long value.
This routine returns a long int value from a 4 byte character stream, accounting for endian type.
p | pointer to memory containing the portable long value |
|
inherited |
Get a portable unsigned short value.
This routine returns a short unsigned int value from a 2 byte character stream, accounting for endian type.
p | pointer to memory containing the portable long value |
|
inherited |
Get a portable unsigned long value.
This routine returns an unsigned long int value from a 4 byte character stream, accounting for endian type.
p | pointer to memory containing the portable long value |
|
inherited |
Write a portable double value to memory location.
Converts a double (64 bit floating point) value from machine format to a portable format and stores the converted value in the memory referenced by c.
This routine puts a double value to an 8 byte character stream
c | Pointer to memory to hold converted value |
d | Input value to be converted |
|
inherited |
Write a portable short value to memory location.
Converts a short (16 bit integer) value from machine format to a portable format and stores the converted value in the memory referenced by c.
This routine puts a short value to a 2 byte character stream
c | Pointer to memory to hold converted value |
s | Input value to be converted |
|
inherited |
Write a portable long value to memory location.
Converts a long (32 bit integer) value from machine format to a portable format and stores the converted value in the memory referenced by c.
This routine puts a long value to a 4 byte character stream.
c | Pointer to memory to hold converted value |
l | Input value to be converted |
|
inherited |
Write a portable unsigned short value to memory location.
Converts an unsigned short (16 bit integer) value from machine format to a portable format and stores the converted value in the memory referenced by c.
This routine puts an unsigned short value to a 2 byte character stream
c | Pointer to memory to hold converted value |
s | Input value to be converted |
|
inherited |
Write a portable unsigned long value to memory location.
Converts an unsigned long (32 bit integer) value from machine format to a portable format and stores the converted value in the memory referenced by c.
This routine puts an unsigned long value to a 4 byte character stream.
c | Pointer to memory to hold converted value |
ul | Input value to be converted |
|
inherited |
Determines if a file exists.
Determines if a file exists.
sFileName | - file name to check for |
Determines if a file exists.
sFileName | - file name to check for |
iOption | if 1, assume this is a request for a dbf file and check for the a dbt memo file also, returns true if both files are found |
|
inherited |
Determines if a file exists.
iOption | if 1, assume this is a request for a dbf file and check for the a dbt memo file also, returns true if both files are found |
|
inherited |
Determines if file is open.
|
virtual |
Get auto commit setting.
This routine returns the table setting if set, otherwise returns the system level setting.
|
virtual |
Get auto commit setting.
iOption | 0 - Specific setting for this table 1 - If this table should be auto updated (takes DBMS setting into account) |
|
inherited |
Get the block size.
|
virtual |
Get a pointer to the current index object.
Return true if dbf file empty or positioned to the first record
|
virtual |
Return the current record number.
|
inherited |
Get the current data directory.
|
virtual |
Get xbDate field for field name.
sFieldName | Name of field to retrieve. |
dtFieldValue | Output field value. |
|
virtual |
Get xbDate field for field number.
iFieldNo | Number of field to retrieve. |
dtFieldValue | Output field value. |
|
virtual |
Return the current dbf status.
|
inherited |
Get the default auto commit setting.
When auto commit is enabled, the library will automatically post any updates when moving off an updated record or closing files. If auto commit is disabled, the application program will need to explicitly update the tables using using dbf->Put() and dbf->AppendRecord().
|
inherited |
Get the default date format.
|
inherited |
Get the directory name.
|
virtual |
Get xbDouble field for field name.
sFieldName | Name of field to retrieve. |
dFieldValue | Output field value. |
|
virtual |
Get xbDouble field for field number.
iFieldNo | Number of field to retrieve. |
dFieldValue | Output field value. |
|
virtual |
Get xbDouble field for field number.
iFieldNo | Number of field to retrieve. |
dFieldValue | Output field value. |
iRecBufSw | 0 - Record buffer with any updates. 1 - Record buffer with original data. |
|
inherited |
Get the Endian type.
|
virtual |
Return true if dbf file empty or positioned to the last record.
|
inherited |
Get an error message.
iErrorCode | ErrorCode is the error number of description to be returned. |
Get xbString field for field name.
sFieldName | Name of field to retrieve |
sFieldValue | Output field value. |
|
virtual |
Get field data for field number.
iFieldNo | Number of field to retrieve. |
sFieldValue | Output field value. |
|
virtual |
Get field data for field number.
iFieldNo | Number of field to retrieve. |
sFieldValue | Output field value. |
iRecBufSw | 0 - Record buffer with any updates. 1 - Record buffer with original data. |
|
virtual |
Return the number of fields in the table.
|
virtual |
Get decimal for field name.
This routine retreives a field's decimal length.
sFieldName | Name of field to retrieve |
iFieldDecimal | Output field value. |
|
virtual |
Get decimal for field number.
This routine retreives a field's decimal length.
iFieldNo | Number of field to retrieve |
iFieldDecimal | Output field value. |
|
virtual |
Get field length for field name.
This function retrieves a field's length.
sFieldName | Name of field to retrieve |
iFieldLen | Output field length value. |
|
virtual |
Get field length for field number.
This function retrieves a field's length.
iFieldNo | Name of field to retrieve |
iFieldLen | Output field length value. |
|
virtual |
Returns the name of the specified field.
Returns a pointer to the name for the field specified by iFieldNo.
iFieldNo | Number of field. |
sFieldName | Output variable containing the field name. |
|
virtual |
Get field ID number for a given field name.
Returns the field number for the named field.
sFieldName | Name of field. |
|
virtual |
Get the field number for name.
Returns the field number for the named field.
All field get/put methods require either a field number or field name as one of the parameters. Using the methods that take the field numbers will yield slightly better performance because the methods that take a name, have to look up the number.
sFieldName | Name of field. |
iFieldNo | Output field number for the given name. |
|
virtual |
Get field type for field name.
sFieldName | Field name. |
cFieldType | Output field type. |
|
virtual |
Get field type for field number.
iFieldNo | Field number. |
cFieldType | Output field type. |
|
inherited |
Get the directory part of the file name.
sCompleteFileNameIn | - a fully qualfied input file name |
sFileDirPartOut | - the returned directory name part out of sCompleteFileNameIn |
|
inherited |
Get the directory part of the file name.
sFileDirPartOut | - the returned directory name |
|
inherited |
Get the extension part of the file name.
sCompleteFileNameIn | - a fully qualfied input file name |
sFileExtPartOut | - the returned directory name part out of sCompleteFileNameIn |
|
inherited |
Get the extension part of the file name.
sFileNameExtOut | - the returned extension part out of sCompleteFileNameIn |
|
inherited |
Get the time of last file modification timestamp as reported by the OS.
mtime | - returned time of last file modification |
|
inherited |
Get the file name.
|
inherited |
Get the name part of the file name.
sCompleteFileNameIn | - a fully qualified input file name |
sFileNamePartOut | - the returned file name part out of sCompleteFileNameIn |
|
inherited |
Get the name part of the file name.
sFileNamePartOut | - the returned file name part out of sCompleteFileNameIn |
|
inherited |
Get the size of the file as reported by the OS.
ullFileSize | - unsigned long long field as output |
|
inherited |
Get the file type aka Capitalized file extension.
sFileTypeOut | - the returned extension part out of sCompleteFileNameIn |
|
virtual |
Get the first record.
Get the first not deleted record. This routines skips over any deleted records.
|
virtual |
Get the first record.
iOption | XB_ALL_RECS - Get the first record, deleted or not. XB_ACTIVE_RECS - Get the first active record. XB_DELETED_RECS - Get the first deleted record. |
|
virtual |
Get xbFloat field for field name.
sFieldName | Number of field to retrieve. |
fFieldValue | Output field value. |
|
virtual |
Get xbFloat field for field number.
iFieldNo | Number of field to retrieve. |
fFieldValue | Output field value. |
|
inherited |
Get the fully qualified file name.
|
virtual |
|
inherited |
Get home directory.
sHomeDirOut | - Output home directory for current user. |
|
virtual |
Get the last record.
Get the last not deleted record. This routines skips over any deleted records.
|
virtual |
Get the last record.
iOption | XB_ALL_RECS - Get the last record, deleted or not. XB_ACTIVE_RECS - Get the last active record. XB_DELETED_RECS - Get the last deleted record. |
|
inherited |
|
inherited |
|
virtual |
Get logical field for field name.
sFieldName | Name of field to retrieve. |
bFieldValue | Output field value. |
|
virtual |
Get logical field for field name.
sFieldName | Name of field to retrieve. |
sFieldValue | Output field value. |
|
virtual |
Get logical field for field number.
iFieldNo | Number of field to retrieve. |
bFieldValue | Output field value. |
|
virtual |
Get logical field for field number.
iFieldNo | Number of field to retrieve. |
bFieldValue | Output field value. |
iRecBufSw | 0 - Record buffer with any updates. 1 - Record buffer with original data. |
|
virtual |
Get logical field for field number.
iFieldNo | Number of field to retrieve. |
sFieldValue | Output field value. |
|
virtual |
Get long field for field name.
sFieldName | Number of field to retrieve. |
lFieldValue | Output field value. |
|
virtual |
Get long field for field number.
iFieldNo | Number of field to retrieve. |
lFieldValue | Output field value. |
|
inherited |
Get the multi user setting.
|
virtual |
Get the next record.
Get the next not deleted record. This routines skips over any deleted records.
|
virtual |
Get the next record.
iOption | XB_ALL_RECS - Get the next record, deleted or not. XB_ACTIVE_RECS - Get the next active record. XB_DELETED_RECS - Get the next deleted record. |
|
virtual |
Get the next record.
iOption | XB_ALL_RECS - Get the next record, deleted or not. XB_ACTIVE_RECS - Get the next active record. XB_DELETED_RECS - Get the next deleted record. |
ulStartRec | Get next record, starting from ulStartRec. |
Get field null status.
iFieldName | Field Name of field to retrieve. |
bIsNull | Output field value. If field is all spaces on record buffer, returns true. |
|
virtual |
Get field null status.
iFieldNo | Number of field to retrieve. |
bIsNull | Output field value. If field is all spaces on record buffer, returns true. |
|
virtual |
Get field null status.
iFieldNo | Number of field to retrieve. |
bIsNull | Output field value. If field is all spaces on record buffer, returns true. |
iRecBufSw | 0 - Record buffer with any updates. 1 - Record buffer with original data. |
|
inherited |
Get the open mode of the file.
|
inherited |
Get the OS dependent path separator.
|
virtual |
Get the previous record.
Get the previous not deleted record. This routine skips over any deleted records.
|
virtual |
Get the previous record.
iOption | XB_ALL_RECS - Get the previous record, deleted or not. XB_ACTIVE_RECS - Get the previous active record. XB_DELETED_RECS - Get the previous deleted record. |
|
protectedvirtual |
Get raw field data for field number.
This is a protected method, used by other methods. This method would be subject to buffer overflows if made public.
iFieldNo | Number of field to retrieve. |
cBuf | Pointer to buffer area provided by calling application program. |
ulBufSize | Size of data to copy |
iRecBufSw | 0 - Record buffer with any updates. 1 - Record buffer with original data. |
|
virtual |
Get record for specified record number.
Retrieve a record from disk and load it into the record buffer. If auto commit is enabled and there are pending updates, this routine will flush the updates to disk before proceeding to ulRecNo.
ulRecNo | - Record number to retrieve. |
|
virtual |
Get pointer to record buffer.
iOpt | 0 for RecBuf (current) or 1 for RecBuf2 (original contents) |
|
virtual |
Get the current number of records in the dbf data file.
Get the current number of records in the dbf data file.
ulRecCnt | Output number of records in file. |
|
virtual |
Get the dbf record length.
|
inherited |
Get the share mode of the file.
|
virtual |
Get the table alias.
This routine returns the table alias.
|
inherited |
Get the current temp directory.
|
virtual |
Get unsigned long field for field name.
sFieldName | Number of field to retrieve. |
ulFieldValue | Output field value. |
|
virtual |
Get unsigned long field for field number.
iFieldNo | Number of field to retrieve. |
ulFieldValue | Output field value. |
|
pure virtual |
|
inherited |
Get the file type byte and version of the dbf file.
Pull the first bye off the DBF file for further inspection. First byte has various bits set to determine what the file format is.
sFileName | - Name of file to examine |
cFileTypeByte | - Retruned first byte of dbf file |
|
inherited |
Get the file type byte and version of the dbf file.
Pull the first bye off the DBF file for further inspection. First byte has various bits set to determine what the file format is.
sFileName | - Name of file to examine |
cFileTypeByte | - Returned first byte of dbf file |
iVersion | - Returned file version |
|
inherited |
Get the file type byte and version of the dbf file.
Pull the first bye off the DBF file for further inspection. First byte has various bits set to determine what the file format is.
sFileName | - Name of file to examine |
iVersion | - Returned file version |
|
virtual |
Get the pointer to the xbXbase structure,.
|
protectedvirtual |
|
virtual |
Check for existence of any memo fields.
|
inherited |
Determines status of file extension.
sFileName | - Name of file to examine |
iOption | - Inspection type 1 check for DBF 2 check for NDX 3 check for MDX 4 check for NTX |
|
virtual |
Open a table/dbf file.
This routine sets the alias name to the same as the table name.
sTableName | Table name to open, Include the .dbf or .DBF extension. |
Open a table/dbf file.
sTableName | Table name to open, Include the .dbf or .DBF extension. |
sAlias | Alias name to assign to this entry. |
|
pure virtual |
|
virtual |
|
virtual |
Pack dbf file.
This routine eliminates all deleted records from the file and clears out any unused blocks in the memo file if one exists.
ulDeletedRecCnt | - Output - number of recrods removed from the file. |
|
virtual |
Put date field for field name.
sFieldName | Name of field to update. |
dtFieldValue | Field value. |
|
virtual |
Put date field for field number.
iFieldNo | Number of field to update. |
dtFieldValue | Field value. |
Put double field for field name.
sFieldName | Name of field to update. |
dFieldValue | Field value. |
|
virtual |
Put double field for field number.
iFieldNo | Number of field to update. |
dFieldValue | Field value. |
Put field for field name.
sFieldName | Name of field to update. |
sFieldValue | Field value. |
|
virtual |
Put field for field number.
iFieldNo | Number of field to update. |
sFieldValue | Field value. |
Put float field for field name.
sFieldName | Name of field to update. |
fFieldValue | Field value. |
|
virtual |
Put float field for field number.
iFieldNo | Number of field to update. |
fFieldValue | Field value. |
|
virtual |
Put logical field for field name.
sFieldName | Name of field to update. |
sFieldValue | Field value. |
Put logical field for field name.
sFieldName | Name of field to update. |
bFieldValue | Field value. |
|
virtual |
Put logical field for field number.
iFieldNo | Number of field to update. |
sFieldValue | Field value. |
|
virtual |
Put logical field for field number.
iFieldNo | Number of field to update. |
bFieldValue | Field value. |
|
virtual |
Put long field for field name.
sFieldName | Name of field to update. |
lFieldValue | Field value. |
|
virtual |
Put long field for field number.
iFieldNo | Number of field to update. |
lFieldValue | Field value. |
|
virtual |
Write the current record to disk.
This routine is used to write any updates to the current record buffer to disk.
|
virtual |
Write record to disk.
This routine is used to write a copy of the current record buffer to disk for a given record number.
ulRecNo | Record number to update. |
|
virtual |
Put unsigned long field for field name.
sFieldName | Name of field to update. |
ulFieldValue | Field value. |
|
virtual |
Put unsigned long field for field number.
iFieldNo | Number of field to update. |
ulFieldValue | Field value. |
|
inherited |
Read a block of data from file.
ulBlockNo | - block number to read |
lReadSize | - size of data to read at block location, set to 0 to read blocksize |
*buf | - pointer to buffer to write output data, assumed to be previosuly allocated and large enough to contain data |
|
inherited |
Read a block of data from file.
ulBlockNo | - block number to read |
ulBlockSize | - block size |
lReadSize | - size of data to read at block location, set to 0 to read blocksize |
buf | - pointer to buffer to write output data, assumed to be previosuly allocated and large enough to contain data |
|
protectedvirtual |
Read dbf file header information.
This method assumes the header has been locked appropriately in a multi user environment
iPositionOption | 0 - Don't fseek to beginning of file before read. 1 - Start from beginning of file. |
iReadOption | 0 - Read entire 32 byte header 1 - Read first eight bytes which includes the last update date and number of records. |
|
virtual |
Return record deletion status.
This routine returns the record deletion status.
iOpt | 0 = Current record buffer, 1 = Original record buffer |
|
pure virtual |
|
virtual |
Set auto commit.
This routine sets the auto commit setting for this table.
|
inherited |
Set the block size.
ulBlockSize | - unsigned long block size, divisible by 512 |
|
inherited |
Set the data directory.
sDataDirectory | Set the data directory. |
|
inherited |
Set the default auto commit.
Disabling auto commit requires the application execute explicit updates using dbf->Put() and dbf->AppendRecord(). With auto commit on, the library posts updates automatically when moving off the current record or closing a file.
bDefaultAutoCommit | xbTrue - Enable default auto commit. xbFalse - Disable default auto commit. |
|
inherited |
Set the default date format.
sDefaultDateFormat | Set the default date format. |
|
inherited |
Set the directory.
sDirectory | - Valid directory name |
|
protectedinherited |
Set the endian type.
This routine determines the Endian-ness at run time instead of compile time as some processers (ie; Sparc,ARM) can be switched either way. This routine is called automatically by the library at startup and does not need to be called in an application program.
|
inherited |
Set the filename.
This routine builds out two internal variables from the input file name
sFileName - the file name part
sFqFileName - the fully qualified file name
sFileName | - Input file name |
|
inherited |
Set the fully qualifed filename.
sFqFileName | - Fully qualifed input file name |
|
inherited |
Set Home Folders.
Create xbase64 log, data and temp folders in the home directory for current usre.
|
inherited |
|
inherited |
|
inherited |
Get the multi user setting.
bMultiUser | xbTrue - Turn on Multi user mode. xbFalse - Turn off Multi user mode. |
|
inherited |
Set the temp directory.
sTempDirectory | Set the data direcroty. |
|
protectedpure virtual |
|
virtual |
Set auto lock.
This routine sets the auto lock setting for this table. There is an overall system level auto lock default setting and each table can have it's own autolock setting. This method controls the table level auto lock setting.
iAutoLock | 1 - Use auto lock for this table. 0 - Don't use auto lock for this table. -1 - (minus one) Use system default. |
Set the header locked status.
bHeaderLocked | xbTrue - Locked xbFalse - Not locked. |
Set lock flavor.
This routine is for future expansion.
iLockFlavor | 1 - Use Dbase (tm) style locking. |
Set table locked status.
bTableLocked | - xbTrue Table locked. xbFalse Table unlocked. |
Undelete all records.
This routine will remove the deletion flag on any deleted records in the table.
|
virtual |
Undelete one record.
This routine will undelete the current record, if it is deleted.
|
protectedpure virtual |
|
inherited |
Write a block of data to file.
ulBlockNo | - block number to write |
lWriteSize | - size of data to write, set to 0 to write blocksize |
*buf | - pointer to buffer of data to be written |
|
protected |
|
inherited |
Xbase wrapper for standard libary fclose.
|
inherited |
Xbase wrapper for standard libary feof.
|
inherited |
Xbase wrapper for standard libary fflush.
|
inherited |
Xbase wrapper for standard libary fgetc.
c | - output character returned by fgetc |
|
inherited |
Xbase wrapper for standard libary fgetc.
c | - output integer returned by fgetc |
|
inherited |
Xbase wrapper for standard libary fgets.
lSize | - reads in at most, one character less than lSize |
s | - an xbString containing data returned by fseek |
|
inherited |
Xbase wrapper for standard libary fopen.
This routine supports all the standard C library open modes. The Xbase routines only use "r" and "r+b".
sOpenMode |
| ||||||||||||||
sFileName | File name to open | ||||||||||||||
iShareMode | XB_SINGLE_USER XB_MULTI_USER |
|
inherited |
Xbase wrapper for standard libary fopen.
This routine supports all the standard C library open modes. The Xbase routines only use "r" and "r+".
sOpenMode |
| ||||||||||||||
iShareMode | XB_SINGLE_USER XB_MULTI_USER |
|
inherited |
|
inherited |
Xbase wrapper for standard libary fopen.
iOpenMode | XB_READ XB_READ_WRITE |
iShareMode | XB_SINGLE_USER XB_MULTI_USER |
|
inherited |
|
inherited |
Xbase wrapper for standard libary fputc.
c | Character to write |
iNoOfTimes | Number of times to write the character |
|
inherited |
|
inherited |
Xbase wrapper for standard libary fread.
p | Pointer to data to write |
size | size of write |
nmemb | Number of times to read it |
|
inherited |
Xbase wrapper for standard libary fseek.
lOffset | Position in file to seek to |
iWhence | SEEK_SET - from beginning of file SEEK_CUR - from current position SEEK_END - from end of file |
|
inherited |
Xbase wrapper for standard libary ftell.
Returns the current file position.
|
inherited |
Turn off file buffering.
Turns off file buffering. File buffering can't be used while in multi user mode.
|
inherited |
Xbase wrapper for standard libary fwrite.
p | Pointer to data buffer to write |
size | Size of data to write |
nmemb | Number of times to write data buffer |
|
inherited |
Read file until a particular character is encountered on input stream.
This routine will read until cDelim is encountered or eof, which ever occurs first.
cDelim | Delimiter to stop writing at. |
sOut | Output xbString containing data read |
|
inherited |
Delete file.
|
inherited |
|
inherited |
Delete file.
sFileNameIn | Name of file to delete |
iOption | If Set to 1, assume this is a delete request for a dbf file, and should rename the dbt file also |
|
inherited |
Xbase wrapper for rewind.
Set file pointer at beginning of file.
|
inherited |
Xbase wrapper for ftruncate.
Set file size to llSize
llSize | New file size. |
|
virtual |
Zap (remove) everything from the file,.
This routine eliminates everything from the dbf file and dbt memo file.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticinherited |
|
protected |
|
protected |
|
staticprotectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |