Index

DXDatastoreQBIC

Purpose:

This is the class that is used to represent a datastore for QBIC.

Methods:

connect
   connect(LPCTSTR datastoreName, LPCTSTR userName,
 
           LPCTSTR authentication [, VARIANT connectString]);

Connects to a datastore.

disconnect
   disconnect()

Disconnects from a datastore.

setOption
   setOption(long option, VARIANT value);

Sets a datastore option.

getOption
   getOption(long option, VARIANT* value);

Gets a datastore option.

datastoreName
   BSTR datastoreName();

Gets the datastore name.

datastoreType
   BSTR datastoreType();

Gets the datastore type.

userName
   BSTR userName();

Gets the user name.

execute
   LPDISPATCH execute(LPCTSTR command,
 
                      short commandLangType
 
                      [,VARIANT paramList]);

Executes a query using a command. The parameter list is in the form of an array of DXNVPairDL objects. The returned LPDISPATCH pointer contains a DXResultSetCursorDL object.

executeQuery
   LPDISPATCH executeQuery(LPDISPATCH query);

Executes a query using a query object. The input parameter LPDISPATCH pointer contains a DXImageQueryQBIC object. The returned LPDISPATCH pointer contains a DXResultSetCursorDL object.

evaluate
   VARIANT evaluate(LPCTSTR command,
 
                    short commandLangType
 
                    [,VARIANT paramList]);

Evaluates a query using a command. The parameter list is in the form of an array of DXNVPairDL objects. The value of the returned VARIANT is a DXResultsDL object.

evaluateQuery
   VARIANT evaluateQuery(LPDISPATCH query);

Evaluates a query using a query object. The value of the returned VARIANT is a DXResultsDL object. The input parameter LPDISPATCH pointer contains a DXImageQueryQBIC object.

createQuery
   LPDISPATCH createQuery(LPCTSTR command,
 
                          short commandLangType
 
                          [,VARIANT paramList]);

Creates a query object using a command. The parameter list is in the form of an array of DXNVPairDL objects. The returned LPDISPATCH pointer contains a DXImageQueryQBIC object.

isConnected
   BOOL isConnected();

Returns TRUE if datastore is connected.

listDataSources
   LPDISPATCH listDataSources();

Gets a list of servers. The returned LPDISPATCH pointer contains a DXSequentialCollectionDL object.

listDataSourceNames
   VARIANT listDataSourceNames(long* arraySize);

Gets a list of server names. The output parameter arraySize is the size of the array.

listEntities
   LPDISPATCH listEntities();

Gets a list of entities. The returned LPDISPATCH pointer contains a DXSequentialCollectionDL object.

listEntityNames
   VARIANT listEntityNames(long* arraySize);

Gets a list of entity names. The output parameter arraySize is the size of the array.

datastoreDef
   LPDISPATCH datastoreDef();

Gets the datastore definition. The returned LPDISPATCH pointer contains a DXDatastoreDefQBIC object.

openCatalog
   openCatalog(LPCTSTR databaseName,
 
               LPCTSTR catalogName);

Opens a different image search catalog. The current catalog will be closed.

closeCatalog
   closeCatalog();

Closes the current image search catalog.

processImages
   processImages(VARIANT imageList, long count);

Processes a list of images for the current catalog. The count is the number of objects in this array.

queryImages
   queueImages(VARIANT imageList, long count);

Puts a list of images into the image queue for later processing. The count is the number of objects in this array.

processImageQueue
   processImageQueue();

Starts the process of cataloging and/or uncataloging in the image queue.

reCatalogImages
   reCatalogImages(long features);

Analyzes the specific features for all the images in the current catalog.

listColorImages
   LPDISPATCH listColorImages();

Lists all images cataloged in the QbColorFeatureClass feature of the current catalog. The collection contains DXImageInfoQBIC objects. The returned LPDISPATCH pointer contains a DXSequentialCollectionDL object.

   class DXImageInfoQBIC
 
   {
    BSTR dlItemID();
    BSTR dlPartNo();
    BSTR dlRepType();
   }

listHistogramImages
   LPDISPATCH listHistogramImages();

Lists all images cataloged in the QbColorHistogramClass feature of the current catalog. The collection contains DXImageInfoQBIC objects. The returned LPDISPATCH pointer contains a DXSequentialCollectionDL object.

   class DXImageInfoQBIC
 
   {
    BSTR dlItemID();
    BSTR dlPartNo();
    BSTR dlRepType();
   }

listDrawImages
   LPDISPATCH listDrawImages();

Lists all images cataloged in the QbDrawFeatureClass feature of the current catalog. The collection contains DXImageInfoQBIC objects. The returned LPDISPATCH pointer contains a DXSequentialCollectionDL object.

   class DXImageInfoQBIC
 
   {
    BSTR dlItemID();
    BSTR dlPartNo();
    BSTR dlRepType();
   }

listTextureImages
   LPDISPATCH listTextureImages();

Lists all images cataloged in the QbTextureFeatureClass feature of the current catalog. The collection contains DXImageInfoQBIC objects. The returned LPDISPATCH pointer contains a DXSequentialCollectionDL object.

   class DXImageInfoQBIC
 
   {
    BSTR dlItemID();
    BSTR dlPartNo();
    BSTR dlRepType();
   }

addFeature
   addFeature(long feature, BOOL bReCatalog);

Adds the specified feature to the current catalog. When bReCatalog is TRUE, the image search server will analyze the new feature again for the existing images.

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.