next up previous contents
Next: Searching Methods Up: Cell methods Previous: UpdateCell

GetCell

NAME GetCell

PROTOTYPE

#include "SSTable.h"

int SSTable::GetCell(CifString & theCell, int colIndex,
                     int rowIndex);

EXAMPLE

#include "SSTable.h"

SSTable * pTable = new SSTable();

... // do table maniputation 

// Clear all bad values in table
for (int i = 0; i < pTable->GetNumColumns(); i++) {
  for (int j = 0; j < pTable->GetNumRows(); j++) {
    CifString cs;
    pTable->GetCell(cs, i, j);
    if (!cs.Compare(BAD_VALUE))
      pTable->ClearAt(i, j);
  }
}
PURPOSE

GetCell gets a copy of the CifString in a particular cell.

RECEIVES

theCell A CifString reference that is to contain the copied cell CifString.
colIndex The index of the column of the cell.
rowIndex The index of the row of the cell.

RETURN VALUE

A negative value indicates an error or warning.

REMARKS

None  



Olivera Tosic
12/17/1999