next up previous contents
Next: GetSubRow Up: Row methods Previous: DeleteRow

GetRow

NAME GetRow

PROTOTYPE

#include "SSTable.h"
ReVarCifArray<CifString> * SSTable::GetRow(int rowIndex);

EXAMPLE

#include "SSTable.h"
extern void processRow(ReVarCifArray<CifString> *);

SSTable * pTable = new SSTable();
ReVarCifArray<CifString> * row;

... // fill up table

for (int i = 0; i < pTable->GetNumRows(); i++) {
  row = pTable->GetRow(i);
  if (row) {
    processRow(row);
    pTable->FillRow(*row, i);
  }
}
PURPOSE

GetRow returns the data of a row as an array of strings.

RECEIVES

rowIndex The index of the row to be retrieved.

RETURN VALUE

A pointer to a ReVarCifArray<CifString> that contains the data of the specified row.
A NULL value will be returned if an error occurs.

REMARKS

See also: GetSubRow



Olivera Tosic
12/17/1999