edmiGetHashedAttrInstancesBN
Â
EdmiError edmiGetHashedAttrInstancesBN (SdaiModel modelId, SdaiString entityName, SdaiString attributeName, SdaiString attrStringValue, SdaiInteger attrIntegerValue, SdaiInteger maxBufferSize, SdaiInteger *index, SdaiInteger *numberOfHits, SdaiInstance *resultBuffer);
Search the specified model for the instances with an attribute value equal to the specified attribute. The attribute is specified by name via the arguments entityName and attributeName. Number of instances found is returned via the argument <numberOfHits>. If no attribute hash table is defined for the specified attribute, no sequential search is performed and the function returns an error code.
Arguments
Type | Name | Comment |
SdaiModel | modelId | A numeric modelID that uniquely identifies the model of interest in the EDMdatabase. The modelID is returned from the functions: sdaiCreateModel , sdaiCreateModelBN , sdaiOpenModelBN , edmiGetModel , edmiGetModelBN , sdaiGetInstanceModel |
SdaiString | entityName | Specify the name of the instance type, i.e. the name of the entity that defines the instance type. Entity names are case insensitive. |
SdaiString | attributeName | Specifies the name of the attribute. Attribute names are case insensitive. |
SdaiString | attrStringValue | is used to specify the hash table key for hash tables of SdaiString data type. |
SdaiInteger | attrIntegerValue | is used to specify the hash table key for hash tables of SdaiInstance, and EdmPackedDate data types. |
SdaiInteger | maxBufferSize | Specifies the size (in number of bytes) of the buffer used for receiving matching elements. The number of elements may never exceed the number that fits into a buffer with the size specified in this argument. |
SdaiInteger | *index |
|
SdaiInteger | *numberOfHits |
|
SdaiInstance | *resultBuffer | Address of a buffer in the calling application that will receive the instanceID of each returned matching instance. This buffer is mapped to a SdaiInstance array when the instanceID of each returned matching instance is stored. The <maxBufferSize> argument should prevent the function to write past buffer. |
Return Value
Options
Â
Example
Â
 <example>
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â