stm_r_xx_all
● The information is retrieved into a structured data type (record) that varies according to the type of element referenced.
combinational
assignment
Input/Output Note: Whenstm_unresolved
is returned, a record is received with the fieldsname
,unique name
,type
, andchart
. The remainder of the text fields are empty. The remainder of the graphical fields contain-1
.To retrieve several fields (graphical and textual) attached to a specific state whose ID isst_id
, use the first statement to retrieve all the information regarding the specific state (st_id
), then extract the particular fields from the record.stm_id st_id;
int status;
stm_st_all_ptr st_record;
stm_element_name name;
stm_short_name synonym;
stm_color color;
.
.
st_record = stm_r_st_all (st_id, &status);
name = st_record->st_name;
synonym = st_record->st_synonym;
color = st_record->st_color;