Previous: Automatic messages
Up: Object Classes
Next: Installing a Class
Previous Page: Automatic messages
Next Page: Messages to the driver

Class Drivers

All methods defined by a class should be accessible through one entry point, called Class Driver. The calling sequence of the class driver is as follows:

CALL driver (msg,ivdsn,instr,idone)

Character variable, NULL terminated, containing the message
Object handle
A structure of extra information - see below
Integer flag returned by the driver - 0 means 'not-done', anything else means done

instr is a structure which allows the caller and the driver to pass extra information. Driver Call Structure

        character*16 name    ! Object name
        integer class        ! Object class
        integer type         ! Object type (sub-class)
        integer lun          ! Fortran unit number for possible output
        integer pnt          ! Pointer for returned data
      end structure

This form of the input structure allows the caller to request extra information to be returned via pnt.

Fri Nov 4 01:19:29 MET 1994