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: SetFlags Up: General Methods Previous: General Methods

Column Option Constants

PROTOTYPE
#include "ISTable.h"

const char ISTable::CASE_SENSE;
const char ISTable::CASE_INSENSE;
const char ISTable::W_SPACE_SENSE;
const char ISTable::W_SPACE_SENSE;
const char ISTable::DT_STRING;
const char ISTable::DT_INTEGER;
const char ISTable::DT_DOUBLE;

PURPOSE CASE_SENSE is the bit field for setting comparisons to be case sensitive.
CASE_INSENSE is the bit field for setting comparisons to be case insensitive.
W_SPACE_SENSE is the bit field for setting comparisons to be white space sensitive.
W_SPACE_INSENSE is the bit field for setting comparisons to be white space insensitive.
DT_STRING is the value for a string datatype.
DT_INTEGER is the value for an integer datatype.
DT_DOUBLE is the value for a double datatype.

REMARKS

The first four constants are bitwise ORed together and passed as the ``options'' parameter to the table. They determine how string comparisions are done on a particular column.

The other three values are the values for the three supported primitive datatypes. You can bitwise OR these with the ``options''. They determine how values in a column get compared. The reason for this is illustrated by a simple example. Suppose the numbers 9.9 and 10.1 are in a column. If the datatype of the column is DT_STRING, 9.9 comes after 10.1. This is because 1 comes before 9. If the datatype was correctly assigned to DT_DOUBLE, 9.9 would come before 10.1.


next up previous contents
Next: SetFlags Up: General Methods Previous: General Methods
Olivera Tosic
6/12/2002

 

© RCSB PDB