![]() |
![]() An Information Portal to Biological Macromolecular Structures |
|
PDB Home |
Contact Us ![]() |
![]() |
Software Tools Home | Dictionary Home | PDBML Home |
![]() |
#include "ISTable.h"
int ISTable::FillRow(ReVarCifArray<CifString> & theRow,
int rowIndex);
#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));
FillRow puts an array of CifStrings into a specified row as its data.
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. |
A negative value indicates an error or warning.
None |