Single-Element Functions : List of Functions : stm_r_xx_type

stm_r_xx_type
Function Type
stm_element_type
For Elements
a-flow-line (compound)
Description
Retrieves element subtypes for the specified element. Most Rational Statemate elements are divided into classes, referred to as subtypes. For example, a state might belong to one of a number of subtypes, such as and, or, basic, diagram, instance, or reference.
You can call this function without indicating the specific element type:

stm_r_type (id, &status)

Syntax
stm_r_xx_type (xx_id, &status)
Arguments
 
Input/Output
Status Codes
Return Values
The return value of the function belongs to an enumerated type. The enumerated type depends on the particular element type for which the function is performed. The enumerated type is named stm_element_type, where element varies as shown in the following table.
Note: The value stm_st_component is not used.
Example
To retrieve the type of state Ready and execute some statements if the state is an or state, use the following statements:

 

stm_id st_id;
stm_state_type st_type;
int status;
.
.
st_id = stm_r_st ("READY", &status);
st_type = stm_r_st_type (st_id, &status);
if(st_type == stm_st_or)
.
.
.