IBM Books

Image, Audio, and Video Extenders Administration and Programming

QbQuerySetFeatureWeight


Image Audio Video
X    

Sets the weight of the specified feature in a query object.

Authorization

None.

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

libdmbqqry.sl (HP-UX)

libdmbqqry.so (Solaris)

Include file

dmbqbapi.h

Syntax

SQLRETURN QbQuerySetFeatureWeight(
      QbQueryHandle qObj,
      sqldouble* weight
      );

Parameters

qObj (in)
The handle of the query object.

weight (out)
The pointer to the variable to set to the feature weight.

Error codes

qbiECinvalidQueryHandle
The query object handle that you specified does not reference a valid query object.

Examples

Set the weight for the average color feature in a query object identified by the handle qoHandle:

#include <dmbqbapi.h>
 
weight=2.0
rc = QbQuerySetFeatureWeight(qoHandle, "QbColorFeatureClass", &weight);


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