RCSB PDB Protein Data Bank A Member of the wwPDB
An Information Portal to Biological Macromolecular Structures
PDB Home | Contact Us
next up previous contents
Next: GetSubRow Up: Row methods Previous: RemoveRow

GetRow

NAME GetRow

PROTOTYPE

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

EXAMPLE

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

ISTable * pTable = new ISTable();
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
6/12/2002

 

© RCSB PDB