home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / NeoIntroTCL3.0 folder / TCL / NeoDemo / Includes / NeoDemo.h < prev   
Encoding:
C/C++ Source or Header  |  1995-01-03  |  895 b   |  49 lines  |  [TEXT/KAHL]

  1. /****
  2.  * CNeoDemoDoc.h
  3.  *
  4.  *    Document class for a typical application.
  5.  *  Copyright © 1992 NeoLogic Systems.  All rights reserved.
  6.  *
  7.  ****/
  8.  
  9. #define    _H_NeoDemo            /* Include this file only once */
  10. #include <time.h>
  11.  
  12. /*
  13.  * A NeoPhase structure,  containing a target string,
  14.  * number of iterations done,  and a SoFar in milliseconds.
  15.  */
  16.  
  17. enum phases {
  18.     kNoPhase    = -1,
  19.     kMinPhase    = 0,
  20.     kInsert        = kMinPhase,
  21.     kRandomly,
  22.     kSerially,
  23.     kChange,
  24.     kDelete,
  25.     kMaxPhase    = kDelete
  26. };
  27.  
  28. // Indices into the array going across.  There are three of them
  29. enum cols {
  30.     kMinCol        = 0,
  31.     kTargetCol    = kMinCol,
  32.     kSoFar,
  33.     kPerRecord,
  34.     kTotal,
  35.     kMaxCol        = kTotal
  36. };
  37.  
  38. enum states {
  39.     kStop,
  40.     kStart
  41. };
  42.  
  43. typedef struct NeoPhase {
  44.     long    target;        /* Copied from TextBox field in main pane   */
  45.     long    done;        /* Number of operations done so far            */
  46.     long    SoFar;        /* Total time units in Milliseconds so far    */
  47. } NeoPhase;
  48.  
  49.