![]() |
![]() |
![]() |
![]() |
OMget_obj_att, OMset_obj_att
Synopsis
int OMget_obj_att (OMobj_id object_id,
OMobj_name attribute,int *state );
int OMset_obj_att (OMobj_id object_id,
OMobj_name attribute,int _state );Description
These routines get and set an object's attribute.Arguments
object_idattributeThe name of an attribute. You can specify any of the following variables, which are defined in <avs/om_att.h>:
Make the object required. The object's associated function object will execute only if the object has a valid value.
stateIn OMget_obj_att, an output argument containing the attribute's state.In OMset_obj_att, an input argument specifying the new state.The state is one of the following:
Returned value
The status code (see Return Status ).Examples
/* Flip object grp1_id's notify state. */
#include <avs/OM_att.h>
OMobj_id grp1_id;
int state;
int status;
...
status = OMget_obj_att(grp1_id, OM_att_notify, &state);
state = !state;
status = OMset_obj_att(grp1_id, OM_att_notify, state);See Also
![]() |
![]() |
![]() |
![]() |