![]() |
![]() An Information Portal to Biological Macromolecular Structures |
|
PDB Home |
Contact Us ![]() |
![]() |
Software Tools Home | Dictionary Home | PDBML Home |
![]() |
#include "ISTable.h"
int ISTable::GetDataType(int colIndex);
#include "ISTable.h"
ISTable * pTable = new ISTable();
... // do table maniputation
for (int i = 0; i < pTable->GetNumColumns(); i++) {
int dt = pTable->GetDataType(i);
switch (dt) {
case ISTable::DT_STRING: ...; break;
case ISTable::DT_INTEGER: ...; break;
case ISTable::DT_DOUBLE: ...; break;
default: ...; break;
}
}
GetDataType returns the datatype code for a column.
colIndex | The index of the column in question |
A negative value indicates an error or warning.
See also: | Column Option Constants |
---|