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: GetSubColumn Up: Column methods Previous: RemoveColumn

GetColumn

NAME GetColumn

PROTOTYPE

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

EXAMPLE

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

ISTable * pTable = new ISTable();
ReVarCifArray<CifString> * col;

... // fill up table

for (int i = 0; i < pTable->GetNumColumns(); i++) {
  col = pTable->GetColumn(i);
  if (col) {
    processColumn(col);
    pTable->FillColumn(*col, i);
  }
}
PURPOSE

GetColumn returns an array of strings of the data of a column.

RECEIVES

colIndex The index of the column to be retrieved.

RETURN VALUE

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

REMARKS

See also: GetSubColumn



Olivera Tosic
6/12/2002

 

© RCSB PDB