Software Code Generator Overview : Hooks and Callbacks : Hooks in Generated Code : Hooks in Ada

Hooks in Ada

In Ada, if you are going to use any Rational Statemate elements in a callback routine, you must first create hooks for them. This is done through the Hooks Data Editing screen shown in the following figure.

For more information on how to use callback routines in the user code, refer to Interfacing With the Rational Statemate Model.

Ada allows you to create hooks for the following: