Ema_Model_Attr_Get()
Abstract
Obtains the value of the specified object attributes.
Syntax
Ema_Model_Attr_Get (model_id, <ACV_List>)
| Argument | Type | Description |
|---|---|---|
model_id |
EmaT_Model_Id |
numeric model ID of the model-of-interest [This value is a numeric identifier that references a model. A model ID can be obtained from several EMA functions.] |
<ACV_List> |
list of one or more ACV argument trios [Each ACV consists of three comma-separated arguments: - a string indicating the attribute name - a symbolic constant or macro indicating the component - a pointer to the memory location which will be filled by the value of the attribute This list must be terminated by the symbolic constant EMAC_EOL.] |
Return Type
void
No return value.
Header
ema.h
Details
This function implements the attr_get operator for objects.
A common use of this function is to get the number of objects in a model, as follows:
Ema_Model_Attr_Get (<model_id>,
ATTR_EMA_NUM_OBJECTS, COMP_OBTYPE(<object_type>), &<num_objs>, EMAC_EOL)
where:
<object_type> is the symbolic constant representing the object type within the model (such as OBJ_ND_PROCESSOR). These are listed in the tables following Models, Objects, and Attributes.
<num_objs> is an integer