xbXBase class
More...
#include <xbase64.h>
◆ ~xbXBase()
◆ xbXBase()
◆ AddDbfToDbfList()
xbShort xbXBase::AddDbfToDbfList |
( |
xbDbf * |
d, |
|
|
const char * |
DatabaseName |
|
) |
| |
Add dbf to dbf list.
Adds an xbDbf class instance to the list of dbf's.
- Parameters
-
d | the xbDbf instance to be added |
DatabaseName | name of the database |
- Returns
- One of the following return codes:
Return Code | Description |
XB_NO_ERROR | No error |
XB_NO_MEMORY | Out of memory |
◆ DirectoryExistsInName()
xbShort xbXBase::DirectoryExistsInName |
( |
const char * |
Name | ) |
|
Get offset of last PATH_SEPARATOR in Name.
Scans the specified Name for the last occurance of PATH_SEPARATOR.
- Parameters
-
Name | string to be scanned. |
- Returns
- offset of last occurance of PATH_SEPARATOR
◆ DisplayError()
void xbXBase::DisplayError |
( |
xbShort |
ErrorCode | ) |
const |
Display description of error code.
Displays a text description of an XBase error code.
- Parameters
-
ErrorCode | error to be displayed |
◆ GetDbfPtr()
xbDbf * xbXBase::GetDbfPtr |
( |
const char * |
Name | ) |
|
Get pointer to named dbf.
Looks up an open DBF file by Name.
- Parameters
-
- Returns
- A pointer to the xbDbf class instance if found or NULL if not found.
◆ GetDefaultDateFormat()
xbString& xbXBase::GetDefaultDateFormat |
( |
| ) |
|
|
inline |
◆ GetDouble()
xbDouble xbXBase::GetDouble |
( |
const char * |
p | ) |
|
Get a portable double value.
Converts a double (64 bit floating point) value stored at p from a portable format to the machine format.
- Parameters
-
p | pointer to memory containing the portable double value |
- Returns
- the double value.
◆ GetEndianType()
◆ GetErrorMessage()
const char * xbXBase::GetErrorMessage |
( |
xbShort |
ErrorCode | ) |
|
|
static |
Get description of error code.
Returns a pointer to string containing a text description of an error code.
- Parameters
-
ErrorCode | error number of description to be returned |
◆ GetHBFShort()
xbShort xbXBase::GetHBFShort |
( |
const char * |
p | ) |
|
Get a high byte first short value.
Converts a short (16 bit integer) value stored at p from a high byte first format to the machine format.
- Parameters
-
p | pointer to memory containing the high byte first short value |
- Returns
- the short value.
◆ GetHBFULong()
xbULong xbXBase::GetHBFULong |
( |
const char * |
p | ) |
|
Get a high byte first unsigned long value.
Converts an unsigned long (32 bit integer) value stored at p from a high byte first format to the machine format.
- Parameters
-
p | pointer to memory containing the high byte first unsigned long value |
- Returns
- the unsigned long value.
◆ GetLong()
xbLong xbXBase::GetLong |
( |
const char * |
p | ) |
|
Get a portable long value.
Converts a long (32 bit integer) value stored at p from a portable format to the machine format.
- Parameters
-
p | pointer to memory containing the portable long value |
- Returns
- the long value.
◆ GetShort()
xbShort xbXBase::GetShort |
( |
const char * |
p | ) |
|
Get a portable short value.
Converts a short (16 bit integer) value stored at p from a portable format to the machine format.
- Parameters
-
p | pointer to memory containing the portable short value |
- Returns
- the short value.
◆ GetULong()
xbULong xbXBase::GetULong |
( |
const char * |
p | ) |
|
Get a portable unsigned long value.
Converts an unsigned long (32 bit integer) value stored at p from a portable format to the machine format.
- Parameters
-
p | pointer to memory containing the portable unsigned long value |
- Returns
- the unsigned long value.
◆ PutDouble()
void xbXBase::PutDouble |
( |
char * |
c, |
|
|
const xbDouble |
d |
|
) |
| |
Put a portable double value.
Converts a double (64 floating point) value from machine format to a portable format and stores the converted value in the memory referenced by c.
- Parameters
-
c | pointer to memory to hold converted value |
d | value to be converted |
◆ PutLong()
void xbXBase::PutLong |
( |
char * |
c, |
|
|
const xbLong |
l |
|
) |
| |
Put a portable long value.
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.
- Parameters
-
c | pointer to memory to hold converted value |
l | value to be converted |
◆ PutShort()
void xbXBase::PutShort |
( |
char * |
c, |
|
|
const xbShort |
s |
|
) |
| |
Put a portable short value.
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.
- Parameters
-
c | pointer to memory to hold converted value |
s | value to be converted |
◆ PutULong()
void xbXBase::PutULong |
( |
char * |
c, |
|
|
const xbULong |
l |
|
) |
| |
Put a portable unsigned long value.
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.
- Parameters
-
c | pointer to memory to hold converted value |
l | value to be converted |
◆ PutUShort()
void xbXBase::PutUShort |
( |
char * |
c, |
|
|
const xbUShort |
s |
|
) |
| |
Put a portable unsigned short value.
Converts an unsigned long (16 bit integer) value from machine format to a portable format and stores the converted value in the memory referenced by c.
- Parameters
-
c | pointer to memory to hold converted value |
s | value to be converted |
◆ RemoveDbfFromDbfList()
Remove dbf from dbf list.
Removes the specified xbDbf class instance from the list of dbf's.
- Parameters
-
- Returns
- One of the following return codes:
Return Code | Description |
XB_NO_ERROR | No error |
◆ SetDefaultDateFormat()
void xbXBase::SetDefaultDateFormat |
( |
const xbString & |
f | ) |
|
|
inline |
◆ DbfList
◆ EndianType
◆ FreeDbfList
The documentation for this class was generated from the following files: