![]() |
![]() An Information Portal to Biological Macromolecular Structures |
|
PDB Home |
Contact Us ![]() |
![]() |
Software Tools Home | Dictionary Home | PDBML Home |
![]() |
#include "ISTable.h"
int ISTable::FillColumn(ReVarCifArray<CifString> & theCol,
int colIndex);
#include "ISTable.h"
ISTable * pTable = new ISTable();
ReVarCifArray<CifString> some_column;
CifString cs;
int errCode = 0;
while (tokenizer.hasMoreTokens()) {
cs = (char *) tokenizer.GetNextToken();
some_column.Add(cs);
cs.Clear();
}
if ( (errCode = pTable->AddColumn("LastColumn")) >= 0)
pTable->FillColumn(some_column, pTable->GetColumnIndex(
"LastColumn"));
else
log_error(ISTable::GetErrorMessage(errCode));
FillColumn puts an array of CifStrings into a specified column as its data.
theCol | An array of CifStrings to place into the column as data. |
colIndex | The index of the column where the data is to be placed. Keep in mind that the first column is column 0. |
A negative value indicates an error or warning.
This method is NOT safe after index creation.