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:
The following methods are described in this chapter:
You can see coding examples in Appendix C, "Sample Code" on page 185. Other programs are located in the qbic/QbicApi
directory.
This is the constructor for the class.
QbBaseClass( void )
This is the destructor for the class.
virtual ~QbBaseClass( void )
This method checks if the class name of the current object is the same as the given string className.
virtual Checktype( const char *className )
className-A pointer to a string that holds the class name
Boolean value; True if the current object has the same class name as className; False if the object has a different class name
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.
Boolean IsOk( void )
A Boolean value: False if the object encountered internal errors; True otherwise
This method returns the interface type.
virtual const QbInterfaceType Itype( void )
One of the QbInterfaceType enumerated types on page 49
This method returns the name of the derived class.
virtual const char * Type( void )
The name of the class, as a pointer to a constant string; for example QbColorHistogramFeatureClass.