Page 9 out of 26 total pages


QbBaseClass


QbBaseClass is an abstract class at the top of the QBIC inheritance hierarchy. Derived classes can use this superclass' methods for defining the interface type and monitoring object status. This superclass only defines virtual functions so there is minimal overhead.

This class allows safe dynamic binding of C++ objects.

This class contains the public enumerated variable QbInterfaceType. Each of the interfaces possesses a unique interface type specified by QbInterfaceType:

QbBaseClass method

This is the constructor for the class.

Syntax

QbBaseClass( void )

Parameters

None

~QbBaseClass method

This is the destructor for the class.

Syntax

virtual ~QbBaseClass( void )

Parameters

None

Checktype method

This method checks if the class name of the current object is the same as the given string className.

Syntax

virtual Checktype( const char *className )

Parameters

Input

className-A pointer to a string that holds the class name

Output

Boolean value; True if the current object has the same class name as className; False if the object has a different class name

IsOk method

This method returns the current state of the object. If an object encounters an internal error (such as a memory allocation failure in the constructor), the object's private variable, IamOK, is set to False. This method returns the current value of the variable IamOK.

Syntax

Boolean IsOk( void )

Parameters

Input

None

Output

A Boolean value: False if the object encountered internal errors; True otherwise

Itype method

This method returns the interface type.

Syntax

virtual const QbInterfaceType Itype( void )

Parameters

Input

None

Output

One of the QbInterfaceType enumerated types on page 49

Type method

This method returns the name of the derived class.

Syntax

virtual const char * Type( void )

Parameters

Input

None

Output

The name of the class, as a pointer to a constant string; for example QbColorHistogramFeatureClass.




Page 9 out of 26 total pages


xzhu@almaden.ibm.com or tedl@almaden.ibm.com
Copyright © 1998, IBM Corporation. All rights reserved.