home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / mactool / thinkcgu.sit / app ƒ / menapp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-29  |  579 b   |  30 lines

  1. /*
  2. *    FILE:        menapp.h
  3. *    AUTHOR:        R. Gonzalez
  4. *    CREATED:    August 25, 1990
  5. *
  6. *    Defines menu-driven application class.
  7. */
  8.  
  9. # ifndef    menapp_h
  10. # define    menapp_h
  11.  
  12. # include    "app.h"
  13.  
  14. # define    PARENT_CLASS    Menu_App
  15.  
  16. /************************************************************************
  17. *    menu-driven application.  Suitable for stdio environments.
  18. ************************************************************************/
  19. struct    Menu_App:Generic_App
  20. {
  21.     boolean            init(void);
  22.     void            run(void);
  23.     void            query(char*,char[]);
  24.     void            respond(char*);
  25.     boolean            destroy(void);
  26. };
  27.  
  28. # endif
  29.  
  30.