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: Index Methods Up: Cell methods Previous: UpdateCell

GetCell

NAME GetCell

PROTOTYPE

#include "ISTable.h"

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

EXAMPLE

#include "ISTable.h"

ISTable * pTable = new ISTable();

... // 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
6/12/2002

 

© RCSB PDB