IBM Books

Image, Audio, and Video Extenders Administration and Programming

QbAddFeature


Image Audio Video
X    

Adds a feature to the currently opened catalog. QbAddFeature creates the feature table for the specified feature in the database. After adding images to the image column in your user table, use the QbReCatalogColumn API, which adds an entry for each image to the feature table and analyzes the images.

Authorization

Alter

Library file
OS/2 and Windows AIX, HP-UX, and Solaris
dmbqbapi.lib libdmbqbapi.a (AIX)

libdmbqbapi.sl (HP-UX)

libdmbqbapi.so (Solaris)

Include file

dmbqbapi.h

Syntax

SQLRETURN QbAddFeature(
      QbCatalogHandle cHdl,
      char *featureName
      );

Parameters

cHdl (in)
A pointer to the handle of the catalog.

featureName (in)
The name of the feature. The following features are supplied with the Image extender:

Error codes

qbicECIvalidHandle
The catalog handle is not valid.

qbicECCatalogReadOnly
The catalog is open for read only.

qbicECDupFeature
The feature is already in the catalog.

qbiECinvalidFeatureClass
The feature you specified is not a valid name format.

Examples

Add the QbColorFeatureClass feature to the catalog identified by the handle CatHdl:

#include <dmbqbapi.h>
 
rc = QbAddFeature(CatHdl,
       QbColorFeatureClass);


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]