77
virtual double getDouble(long rowNum, int columnNum);
virtual long getLevelNum(long rowNum, long colNum);
virtual const char* getString(long rowNum,
long colNum);
virtual CNKTimeDate getTimeDate(long rowNum,
long colNum);
Returns a single value stored in the CNKBuf at a given row and
column.
rowNum is the row number in the currently-accessible chunk
of data rows: the first row is always accessed with
rowNum==0. rowNum
should be less than
getRowsReady(). columnNum is the column
number for the data, from
0 to CNKBuf::getNumcolumns()-1.
These methods respectively return a value for use as a double, factor,
string, or timeDate.
CNKBufReader::
virtual void getDoubleArray(long firstRowNum,
int columnNum, long numRows, double* ptr);
This method copies multiple values from a column of values stored in
the
CNKBuf into the array *ptr. columnNum identifies the column in
CNKBuf of the data being copied, from 0 to
CNKBuf::getNumcolumns()-1. firstRowNum is the row number of the
first row to copy in the currently-accessible chunk of data rows: it
should be zero or greater.
numRows is the number of values to copy.
firstRowNum + numRows should be less than getRowsReady().
CNKBufReader::
virtual void releaseRows(long numRows);
After reading up to getRowsReady() data rows (using the methods
getDouble, etc.), releaseRows(numRows) is called to release the first
numRows rows of the available rows. A CNKProc may release all of the
getRowsReady() data rows at once, or fewer rows. If fewer rows are
released than were requested, this is a simple way to access a moving
window over the data.
If
numRows is less than zero, or greater than getRowsReady(), then an
error string is set for the
CNKProc using this CNKBufReader.
CNKBufReader::
virtual void releaseAll();
Komentarze do niniejszej Instrukcji