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: GetDataType Up: General Methods Previous: Column Option Constants

SetFlags

NAME SetFlags

PROTOTYPE

#include "ISTable.h"

int ISTable::SetFlags(char newOpts, int colIndex);

EXAMPLE

#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);
}
PURPOSE

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.

RECEIVES

newOpts A bit field comprised of the bitwise ORing of the desired options.
colIndex The index of the column to have flags set.

RETURN VALUE

A negative value indicates an error or warning.

REMARKS

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



Olivera Tosic
6/12/2002

 

© RCSB PDB