PRT Macros

Following are macros for clearing, setting and testing the various bits of the modify_bitmask argument used by the prt_api_modify_item and prt_api_get_intproc_updates functions.

Macro

Description

SET

Sets the bit that corresponds to the actual data field in the item information structure.

CLR

Clears the bit.

IS

Returns a non-zero value if the bit is set and zero if the bit is clear.

Example

SET_ITEM_ID_MOD_BIT(x)

CLR_ITEM_ID_MOD_BIT(x)          item_id

IS_ITEM_ID_MOD(x)

SET_REFERENCE_ID_MOD_BIT(x)

CLR_REFERENCE_ID_MOD_BIT(x)     reference_id

IS_REFERENCE_ID_MOD(x)

SET_ITEM_TYPE_BIT(x)

CLR_ITEM_TYPE_BIT(x)            item_type_id

IS_ITEM_TYPE(x)

SET_PARENT_ITEM_BIT(x)

CLR_PARENT_ITEM_BIT(x)          parent_item_id

IS_PARENT_ITEM(x)

SET_ITEM_STATUS_BIT(x)

CLR_ITEM_STATUS_BIT(x)         item_status

IS_ITEM_STATUS(x)

SET_INT_HOLD_BIT(x)

CLR_INT_HOLD_BIT(x)             int_hold_active

IS_INT_HOLD(x)                  If int_hold_active = TRUE,

                 int_hold_reason also contains valid data

SET_EXT_HOLD_BIT(x)

CLR_EXT_HOLD_BIT(x)             ext_hold_active

IS_EXT_HOLD(x)                  If ext_hold_active = TRUE,

                         group_id also contains valid data

SET_ATTS_VALID_BIT(x)

CLR_ATTS_VALID_BIT(x)       not needed when using the

IS_ATTS_VALID(x)            'prt_api_modify_item_att' function

More information

Production tracking application interface.