...
To be completed (add example).
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiGetHashedAttrInstance (SdaiModel modelId,
SdaiAttr attrId,
SdaiString attrStringValue,
SdaiInteger attrIntegerValue,
SdaiInstance *instance);
|
Searched the specified model for the instance id of the instance where the specified attribute has exact the specified value. If the attribute type is of string type use the attrStringValue to specify the attribute value. If the attribute type is of integer type, use the attrIntegerValue to specify the attribute value. This function returns only one insance instance id which implies that you only should use this function if the attribute value is defined to be unique. If the attribute value may occur in more than one instance, use edmiGetHashedAttrInstances.
If no attribute hash table is defined for the specified attribute, no sequential search is performed and the function returns an error code. Related functions: edmiGetHashedAttrInstanceBN, edmiGetHashedAttrInstances, edmiGetHashedAttrInstancesBN, edmiHashModelInstances
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetHashedAttrInstance(SdaiModel modelId, SdaiAttr attrId, SdaiString attrStringValue, SdaiInteger attrIntegerValue, SdaiInstance *instance);
Arguments:
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 |
SdaiAttr | attrId | A numeric attributeID that uniquely identifies an attribute definition instance in the EDMdatabase. | The attributeID is returned from the sdaiGetAttrDefinition and sdaiGetAttrDefinitionBN functions. |
SdaiString | attrStringValue | is used to specify the hash table key for hash tables of | sdaiSTRING SdaiString data type. |
SdaiInteger | attrIntegerValue | is used to specify the hash table key for hash tables | of SdaiString, of SdaiInstance, and EdmPackedDate data types. |
SdaiInstance | *instance | Address of the variable where to | reurn return the instance id of the found instance. |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
<example> |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|