sdaiIsKindOf


Determines whether an instance is an instance of the specified instance type or a subtype of this instance type. This operation returns sdaiTRUE if the specified instance is of the specified instance type or a subtype of this instance type, else sdaiFALSE is returned.
The model that holds the actual instance must be open before this operation can be successfully performed.
Related functions: sdaiIsInstanceOf , sdaiIsInstanceOfBN , sdaiIsKindOfBN , sdaiGetInstanceType
Header:
#include "sdai.h"
Prototype:
SdaiBoolean sdaiIsKindOf(SdaiInstance instance,
                          SdaiEntity   entity); 
Arguments:

instance

A numeric instanceID that uniquely identifies the instance of interest in the EDMdatabase.
The instanceID is defined by a sdaiCreateInstance or a sdaiCreateInstanceBN function.

entity

A numeric entityID that uniquely identifies an entity definition instance in EDMdatabase. This entity definition instance identifies the actual instance type.
The entityID can be returned by a sdaiGetEntity function.

Returns:
sdaiTRUE : The actual instance is an instance of the specified instance type and not a subtype of this instance type.
sdaiFALSE : The actual instance is not an instance of the specified instance type or a subtype of this instance type. Use sdaiErrorQuery to check for error during operation.
Example:
SdaiAppInstance anInst;
SdaiEntity pointId;
...
if(sdaiIsKindOf (anInst, pointId) == sdaiTRUE) {
. . . 
}
. . .