home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / CLASS.ZIP / PROCESS.H < prev    next >
Text File  |  1993-02-13  |  1KB  |  57 lines

  1. #ifndef PROCESS_H
  2. #define PROCESS_H
  3.  
  4. #define INCL_DOSSEMAPHORES
  5. #define INCL_DOSPROCESS
  6. #include <os2.h>
  7.  
  8.  
  9. #include "tree.h"
  10.  
  11.  
  12. class process;
  13. class threadTree;
  14. class windowTree;
  15.  
  16.  
  17. class threadTree:public construct, public tree
  18. {       public:
  19.         PTIB pTIB;
  20.         process *pProcess;              // Backpointer
  21.         threadTree(process *pProcess);
  22.         threadTree(threadTree *pParentNew);
  23.         virtual ~threadTree(void);
  24. };
  25.  
  26.  
  27. class process:public construct
  28. {      public:
  29.        process(int argc, char **argv);
  30.        PPIB pPIB;
  31.        char **argv;
  32.        int argc;
  33.        threadTree *pThreadTree;
  34.        virtual ~process(void);
  35.        virtual Boolean create(void);
  36.        void doSomething(void);
  37.        void destruct(void);
  38. };
  39.  
  40.  
  41. #ifdef undefined
  42. class construct:virtual public object
  43. {       public:
  44.         virtual void run(void);
  45.         virtual void doSomething(void);
  46.         virtual Boolean init(void);
  47.         virtual Boolean initPre(void);
  48.         virtual Boolean create(void);
  49.         virtual Boolean initPost(void);
  50.         virtual void destructPost(void);
  51.         virtual void destructPre(void);
  52.         virtual void destruct(void);
  53. };
  54. #endif undefined
  55.  
  56. #endif /* !PROCESS_H */
  57.