Xbase64 4.0.1
C++ Library for handling Xbase (DBF) format type files
|
#include <xbtblmgr.h>
Public Member Functions | |
xbTblMgr () | |
~xbTblMgr () | |
xbInt16 | AddTblToTblList (xbDbf *d, const xbString &sFqTblName) |
xbInt16 | AddTblToTblList (xbDbf *d, const xbString &sFqTblName, const xbString &sTblAlias) |
xbInt16 | DisplayTableList () const |
xbDbf * | GetDbfPtr (const xbString &sTblAlias) const |
xbDbf * | GetDbfPtr (xbInt16 sItemNo) const |
xbTblList * | GetTblListEntry (xbDbf *d) |
xbInt16 | GetOpenTableCount () const |
xbInt16 | RemoveTblFromTblList (const xbString &sTblAlias) |
xbInt16 | RemoveTblFromTblList (xbDbf *d) |
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 | |
void | SetEndianType () |
Set the endian type. More... | |
Static Protected Attributes | |
static xbInt16 | iEndianType = 0 |
static xbString | sNullString = "" |
xb::xbTblMgr::xbTblMgr | ( | ) |
xb::xbTblMgr::~xbTblMgr | ( | ) |
xbInt16 xb::xbTblMgr::AddTblToTblList | ( | xbDbf * | d, |
const xbString & | sFqTblName, | ||
const xbString & | sTblAlias | ||
) |
|
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. |
|
inherited |
Display error message on console for a given error number.
iErrorCode | Error number to reference |
xbInt16 xb::xbTblMgr::DisplayTableList | ( | ) | const |
|
inherited |
Get the current data directory.
xbDbf * xb::xbTblMgr::GetDbfPtr | ( | xbInt16 | sItemNo | ) | const |
|
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 Endian type.
|
inherited |
Get an error message.
iErrorCode | ErrorCode is the error number of description to be returned. |
|
inherited |
Get home directory.
sHomeDirOut | - Output home directory for current user. |
|
inherited |
|
inherited |
|
inherited |
Get the multi user setting.
xbInt16 xb::xbTblMgr::GetOpenTableCount | ( | ) | const |
|
inherited |
Get the OS dependent path separator.
|
inherited |
Get the current temp directory.
xbInt16 xb::xbTblMgr::RemoveTblFromTblList | ( | const xbString & | sTblAlias | ) |
xbInt16 xb::xbTblMgr::RemoveTblFromTblList | ( | xbDbf * | d | ) |
|
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. |
|
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 |
|
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. |
|
staticinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |