ANALYSIS_CONTROL allows user supplied code to be called under nine different circumstances. A module's author can supply "entry-points" to be called under any subset of these circumstances. These entry-points can be separate subroutines, ENTRY statements within a single subroutine, or a combination of the two. The allowed entry-points are:
STATUS = ANGRTY(RECTYP) or
STATUS = ANALYSIS_GET_REC_TYPE(RECTYP)
where RECTYP is the record type. (A list of possible record types can be found in RECTYP.CIN also in C$INC). STATUS is an integer error return that signals ANSUCC if the package is initialised properly. (The other possible error returns can all be found in A_C$LIBRARY:ANERROR.INC)
TALK_TO <Module_Name>
One purpose of this entrypoint is to allow a mechanism for setting adjustable parameters within each module. Authors providing a Talk_to entrypoint for this purpose must supply the code that asks the appropriate questions (or displays the appropriate menu). Authors should use the UIPACK user interface routines for such IO (see CDF-372). In addition to protecting the program from invalid responses, the use of UIPACK means that the responses to questions asked by the Talk_to entrypoint can be driven from the same command file as the ANALYSIS_CONTROL dialog.
Another use of the Talk_to entrypoint is to drop the user into non-event
oriented modules. For example, we have a version of the
CDF EVENT display program that can be linked to ANALYSIS_CONTROL. In
order to enter it, the user types:
TALK_TO DISPLAY