VDKXTable Class Reference

Provides a xbDbf wrapper. More...

#include <vdkxtable.h>

List of all members.

Public Member Functions

Public Attributes

Protected Attributes


Detailed Description

Provides a xbDbf wrapper.

Since it is a derived class of xbDbf, most behaviours are inherited. Refer to xdb reference for further informations.


Constructor & Destructor Documentation

VDKXTable::VDKXTable ( VDKXDatabase owner,
char *  name 
)

Constructor

Parameters:
owner owner xdb
name table name can be either with or without .dbf extension


Member Function Documentation

void VDKXTable::SetOrder ( char *  name  ) 

sets/gets active index Setting Order to NULL no active index will be used.

Parameters:
name index file name

xbShort VDKXTable::Create ( VDKXRecordTemplate *  tpl,
bool  overwrite = false 
)

Creates a table

Parameters:
tpl a VDKXRecordTemplate
overwrite if true and table exist will be truncated and overwritten. Returns:
  • XB_NO_ERROR no errors
  • XB_FILE_EXISTS file exist and overwrite flag = false
  • XB_OPEN_ERROR couldn't open file
  • XB_NO_MEMORY mem allocation error
  • XB_WRITE_ERROR couldn't write on device

xbShort VDKXTable::Open ( void   ) 

Opens table. Returns:

xbShort VDKXTable::Close ( void   ) 

Close table and all associated indexes. Returns:

bool VDKXTable::RemoveIndex ( char *  name  ) 

Removes an index from table

Parameters:
name index name. Returns true on success

VDKXTableIndex * VDKXTable::Index ( char *  name  ) 

Returns an index given a name

Parameters:
name index name Returns (VDKXTableIndex*) NULL on failure

VDKXTableIndex * VDKXTable::Index ( xbShort  order  ) 

Returns an index given an ordinal position

Parameters:
order index ordinal position Returns (VDKXTableIndex*) NULL on failure

xbShort VDKXTable::First (  ) 

Moves database pointer to first logical record. If there is no active index moves on first phisical record If ShowDeleted property is fale (default)moves to first logical/phisical undeleted record. Returns:

xbShort VDKXTable::Last (  ) 

Moves database pointer to last logical record If there is no active index moves on last phisical record If ShowDeleted property is fale (default)moves to last logical/phisical undeleted record. Returns:

xbShort VDKXTable::Next (  ) 

Moves database pointer to next logical record If there is no active index moves on next phisical record If ShowDeleted property is fale (default)moves to next logical/phisical undeleted record. Returns:

xbShort VDKXTable::Prev (  ) 

Moves database pointer to previous logical record If there is no active index moves on previous phisical record If ShowDeleted property is fale (default)moves to previous logical/phisical undeleted record. Returns:


Member Data Documentation

VDKReadWriteValueProp<VDKXTable,xbShort> VDKXTable::Order

sets/gets active index ordinal position. Setting Order to -1 no active index will be used.

VDKReadWriteValueProp<VDKXTable,bool> VDKXTable::ShowDeleted

If false all record marked for deletion will be ignored on common table operations.


The documentation for this class was generated from the following files:
Generated on Wed Sep 12 14:44:11 2007 for vdkxdb 2.4.0 by  doxygen 1.5.3