Ema_Model_Attr_Nth()
Abstract
Obtains the attribute name of the nth attribute of the specified model.
Syntax
Ema_Model_Attr_Nth (model_id, index, attr_name)
| Argument | Type | Description |
|---|---|---|
model_id |
EmaT_Model_Id |
numeric model ID of the model of interest |
index |
int |
numeric index of the attribute of interest |
name |
char* |
receives the name of the specified attribute; this value can then be used to call Ema_Object_Attr_Get() |
Return Type
VosT_Fun_Status
The status of the operation (VOSC_SUCCESS or VOSC_FAILURE)
Header
ema.h
Details
This function is useful as the method of obtaining the name of each attribute within loops that process all attributes of a specified model.
The model ID is a numeric identifier that references a model. It can be obtained from the functions Ema_Model_Create(), Ema_Model_Copy(), or Ema_Model_Read().