![]() |
![]() An Information Portal to Biological Macromolecular Structures |
|
PDB Home |
Contact Us ![]() |
![]() |
Software Tools Home | Dictionary Home | PDBML Home |
![]() |
#include "ISTable.h"
int ISTable::SetFlags(char newOpts, int colIndex);
#include "ISTable.h"
ISTable * pTable = new ISTable();
... // do table construction
// Set all columns to case insensitive strings
for (int i = 0; i < pTable->GetNumColumns(); i++) {
pTable->SetFlags(ISTable::DT_STRING |
ISTable::CASE_INSENSE, i);
}
SetFlags set the flags for a particular column. These flags dictate the datatype of the column and the behavior of searches done on the column.
newOpts | A bit field comprised of the bitwise ORing of the desired options. |
colIndex | The index of the column to have flags set. |
A negative value indicates an error or warning.
Note that setting one of case (in)sensitivity, white space (in)sensitivity, or datatype does not interfere with the current setting of the other two.
See also: | Column Option Constants |
---|