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: InsertColumn Up: Column methods Previous: Column methods

AddColumn

NAME AddColumn

PROTOTYPE

#include "ISTable.h"

int ISTable::AddColumn(const char * newColumnName,
                       char opts = DEFAULT_OPTIONS);

EXAMPLE

#include "ISTable.h"

ISTable * pTable = new ISTable();
pTable->AddColumn("NextToLastColumn");
pTable->AddColumn("LastColumn", ISTable::DT_STRING |
  ISTable::CASE_SENSE | ISTable::W_SPACE_SENSE);
PURPOSE

AddColumn appends a column to the table, but does not add data to the column yet. Use FillColumn to add data to the whole column.

RECEIVES

newColumnName The name of the new column. The column name must be unique to the table.
opts Sets the options for the column. These include the datatype, case sensitivity, and white space sensitivity for comparisions. Has a default value indicating a column of strings, with case and white space sensitivity.

RETURN VALUE

A negative value indicates an error or warning.

REMARKS

It is safe to use this method after index creation.

See also: FillColumn
  Column Option Constants



Olivera Tosic
6/12/2002

 

© RCSB PDB