next up previous contents
Next: GetSubColumn Up: Column methods Previous: RemoveColumn

GetColumn

NAME GetColumn

PROTOTYPE

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

EXAMPLE

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

SSTable * pTable = new SSTable();
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
12/17/1999