8.1.4. Attribute management¶
All the functions for attribute management are listed in this section. For detailed definitions of the attributes, see
Functions
-
MdoResult Mdo_setStrAttrIndex(MdoMdlPtr mdl, const char *att, MdoI32 idx, const char *val)¶
This function changes the value of a string-valued row/column attribute.
- Parameters
mdl – Pointer to the model.
att – A string-valued row/column attribute.
idx – An index.
val – A new value.
- Returns
A response code that specifies the status of the function.
- See
Mdo_getStrAttr()
-
MdoResult Mdo_getStrAttrIndex(const MdoMdlPtr mdl, const char *att, MdoI32 idx, int size, char *val)¶
This function retrieves the value of a string-valued row/column attribute.
- Parameters
mdl – Pointer to the model.
att – A string-valued row/column attribute.
idx – An index.
size – Max length of
val
.val – The current value.
- Returns
A response code that specifies the status of the function.
- See
Mdo_setStrAttr()
Note
To avoid overflows, the size of the array pointed by
val
shall be long enough.
-
MdoResult Mdo_setIntAttr(MdoMdlPtr mdl, const char *att, MdoI32 val)¶
This function changes the value of a 32-bit integer-valued model attribute.
- Parameters
mdl – Pointer to the model.
att – A 32-bit integer-valued model attribute.
val – A new value.
- Returns
A response code that specifies the status of the function.
- See
-
MdoResult Mdo_getIntAttr(const MdoMdlPtr mdl, const char *att, MdoI32 *val)¶
This function retrieves the value of a 32-bit integer-valued model attribute.
- Parameters
mdl – Pointer to the model.
att – A 32-bit integer-valued model attribute.
val – The current value.
- Returns
A response code that specifies the status of the function.
- See
-
MdoResult Mdo_setIntAttrIndex(MdoMdlPtr mdl, const char *att, MdoI32 idx, MdoI32val)¶
This function changes the value of a 32-bit integer-valued row/column attribute.
- Parameters
mdl – Pointer to the model.
att – A 32-bit integer-valued row/column attribute.
idx – An index.
val – A new value.
- Returns
A response code that specifies the status of the function.
- See
-
MdoResult Mdo_getIntAttrIndex(const MdoMdlPtr mdl, const char *att, MdoI32 idx, MdoI32 *val)¶
This function retrieves the value of a 32-bit integer-valued row/column attribute.
- Parameters
mdl – Pointer to the model.
att – A 32-bit integer-valued row/column attribute.
idx – An index.
val – The current value.
- Return
A response code that specifies the status of the function.
- See
-
MdoResult Mdo_setIntAttrArray(MdoMdlPtr mdl, const char *att, MdoI32 bgn, MdoI32 len, const MdoI32 *val)¶
This function changes the values of the specified array of a 32-bit integer-valued row/column attribute.
- Parameters
mdl – Pointer to the model.
att – The 32-bit integer-valued row/column attribute.
bgn – Index of the first element to access.
len – Number of elements to access.
val – The new values for the specified array of the attribute.
- Return
A response code that specifies the status of the function.
- See
-
MdoResult Mdo_getIntAttrArray(const MdoMdlPtr mdl, const char *att, MdoI32 bgn, MdoI32 len, MdoI32 *val)¶
This function retrieves the values of the specified array of a 32-bit integer-valued row/column attribute.
- Parameters
mdl – Pointer to the model.
att – A 32-bit integer-valued row/column attribute.
bgn – Index of the first element to access.
len – Number of elements to access.
val – The current values of the specified array of the attribute.
- Return
A response code that specifies the status of the function.
- See
-
MdoResult Mdo_setRealAttr(MdoMdlPtr mdl, const char *att, MdoReal val)¶
This function changes the value of a real-valued model attribute.
- Parameters
mdl – Pointer to the model.
att – A real-valued model attribute.
val – A new value.
- Return
A response code that specifies the status of the function.
- See
-
MdoResult Mdo_getRealAttr(const MdoMdlPtr mdl, const char *att, MdoReal *val)¶
This function retrieves the value of a real-valued model attribute.
- Parameters
mdl – Pointer to the model.
att – A real-valued model attribute.
val – The current value.
- Return
A response code that specifies the status of the function.
- See
-
MdoResult Mdo_setRealAttrIndex(MdoMdlPtr mdl, const char *att, MdoI32 idx, MdoReal val)¶
This function changes the value of a real-valued array of the row/column attribute.
- Parameters
mdl – Pointer to the model.
att – A real-valued row/column attribute.
idx – An index.
val – A new value.
- Return
A response code that specifies the status of the function.
- See
-
MdoResult Mdo_getRealAttrIndex(const MdoMdlPtr mdl, const char *att, MdoI32 idx, MdoReal *val)¶
This function retrieves the value of a real-valued array of the row/column attribute.
- Parameters
mdl – Pointer to the model.
att – A real-valued row/column attribute.
idx – An index.
val – The current value.
- Return
A response code that specifies the status of the function.
- See
-
MdoResult Mdo_setRealAttrArray(MdoMdlPtr mdl, const char *att, MdoI32 bgn, MdoI32 len, const MdoReal *val)¶
This function changes the values of the specified array of the row/column attribute.
- Parameters
mdl – Pointer to the model.
att – The attribute.
bgn – Index of the first element to access.
len – Number of elements to access.
val – The new values for the specified array of the attribute.
- Return
A response code that specifies the status of the function.
- See
-
MdoResult Mdo_getRealAttrArray(const MdoMdlPtr mdl, const char *att, MdoI32 bgn, MdoI32 len, MdoReal *val)¶
This function retrieves the values of the specified array of the row/column attribute.
- Parameters
mdl – Pointer to the model.
att – The attribute.
bgn – Index of the first element to access.
len – Number of elements to access.
val – The current values of the specified array of the attribute.
- Return
A response code that specifies the status of the function.
- See