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

AddElementToRow

NAME AddElementToRow

PROTOTYPE

#include "ISTable.h"

int ISTable::AddElementToRow(CifString & theElement, int rowIndex);

EXAMPLE

#include "ISTable.h"

ISTable * pTable = new ISTable();
CifString cs;
int errCode = 0, currentRow;

... // table initialization

while (tokenizer.hasMoreTokens()) {
  cs = (char *) tokenizer.GetNextToken();
  pTable->AddElementToRow(cs, currentRow);
  cs.Clear();
}
PURPOSE

AddElementToRow adds one CifString to a specified row. The column where the string is placed is determined by looking for the last null string and then placing the new element to the right.

RECEIVES

theElement The CifString to add to the row.
rowIndex The index of the row where the CifString is to be added. 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