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: AppendToRow Up: Row methods Previous: InsertRow

FillRow

NAME FillRow

PROTOTYPE

#include "ISTable.h"

int ISTable::FillRow(ReVarCifArray<CifString> & theRow,
                     int rowIndex);

EXAMPLE

#include "ISTable.h"

ISTable * pTable = new ISTable();
ReVarCifArray<CifString> some_row;
CifString cs;
int errCode = 0;

...//table initialization

while (tokenizer.hasMoreTokens()) {
  cs = (char *) tokenizer.GetNextToken();
  some_row.Add(cs);
  cs.Clear();
}

if ( (errCode = pTable->AddRow()) >= 0)
  pTable->FillRow(some_row, pTable->GetNumRows() - 1);
else
  log_error(ISTable::GetErrorMessage(errCode));
PURPOSE

FillRow puts an array of CifStrings into a specified row as its data.

RECEIVES

theRow An array of CifStrings to place into the row as data.
rowIndex The index of the row where the data is to be placed. Keep in mind that the first row is row 0.

RETURN VALUE

A negative value indicates an error or warning.

REMARKS

None  



Olivera Tosic
6/12/2002

 

© RCSB PDB