home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Sessions / Completions / Completions Source / Files / HParamBlockTask.h < prev    next >
Encoding:
Text File  |  1998-06-17  |  522 b   |  33 lines  |  [TEXT/CWIE]

  1. // HParamBlockTask.h
  2.  
  3. #ifndef HParamBlockTask_h
  4. #define HParamBlockTask_h
  5.  
  6. #ifndef A5_h
  7. #include "A5.h"
  8. #endif
  9. #ifndef Task_h
  10. #include "Task.h"
  11. #endif
  12. #ifndef __FILES__
  13. #include <Files.h>
  14. #endif
  15.  
  16. class HParamBlockTask: public Task,
  17.                               public HParamBlockRec
  18.   {
  19.     private:
  20.         A5 a5;
  21.         
  22.         static void Complete( HParamBlockRec *block );
  23.         static void CompleteGlue();
  24.         
  25.     public:
  26.         HParamBlockTask();
  27.         ~HParamBlockTask()        { Assert( !Running() ); }
  28.         
  29.         bool Running() const        { return ioParam.ioResult > 0; }
  30.   };
  31.  
  32. #endif
  33.