[Classes] [Prev] [Next] [Methods]

CTableTdiSource

Methods Index

Heritage
Description
Usage
Protected Data Members
Public Methods
Contructor, Destructor, and Operator Methods
Cache Sizing Method
Table Source Override Methods
TDI Method
Protected Methods
Cache Interface

CTableTdiSource


Heritage

Superclass: CTableSource, CNotifier

Subclasses: None


Description

CTableTdiSource implements a table source that is connectable to TDI clients that support the TDIGotoCmd, TDINextCmd, and TDICountCmd request commands.


Usage

See .../samples/arch/tditable for an example of the use of this class.


Protected Data Members

CTable* itsTable; The table that this source is feeding
long tsCurrentRowNumber; The last row sent from the TDI source
long tsPendingRowNumber; The last row requested from the TDI source
CStringRW tsTempString; Temporary storage
int itsCacheLimit; Maximum number of rows to cache
RWHashDictionary itsCache; The cashe


Public Methods

Contructor, Destructor, and Operator Methods

CTableTdiSource(CTable* theTable);
CTableTdiSource(const CTableTdiSource& theTableSource);
CTableTdiSource& operator=(const CTableTdiSource& theTableSource);
virtual ~CTableTdiSource();

Cache Sizing Method

virtual void SetCacheSize( int theRowsInCache);

Table Source Override Methods

virtual void Prime(const CBounds& theCell);
virtual const CTdiValue*  GetTableData(
const CCell& theCell);
virtual BOOLEAN PutTableData(
const CCell& theCell,
const CTdiValue* theData);

TDI Method

virtual void DoUpdateModel(
long theControllerId,
long theCommand,
const CModel* theModel);

Protected Methods

void RequestNextRow();
void RequestPreviousRow();
void RequestRow(long theRow);

Cache Interface

void RowToCache(const CTdiValue* theRowValue, long theRow);
CTdiValue* CacheToRow(long theRow) const;
void DeleteOldestRow();


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.