home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / OTL-MC7.DMS / in.adf / classes.lha / Classes / DOS / Dos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-31  |  952 b   |  47 lines

  1. #ifndef CPP_DOS_DOS_H
  2. #define CPP_DOS_DOS_H
  3.  
  4. // Basisklasse für Dos Objekte
  5. //
  6. // Autor: Jochen Becher
  7. //
  8. // Historie:
  9. // Version 1.0 am 28. Juni 94
  10.  
  11. #ifndef DOS_DOS_H
  12. #include <dos/dos.h>
  13. #endif
  14.  
  15. #ifndef DOS_DOSEXTENS_H
  16. #include <dos/dosextens.h>
  17. #endif
  18.  
  19. #ifndef CPP_EXEC_SHARE_H
  20. #include <classes/exec/share.h>
  21. #endif
  22.  
  23. #ifndef CPP_UTILITY_TAGITEM_H
  24. #include <classes/utility/tagitem.h>
  25. #endif
  26.  
  27. #ifndef CPP_EXCEPTIONS_EXCEPTIONS_H
  28. #include <classes/exceptions/exceptions.h>
  29. #endif
  30.  
  31. class DosObjectC : protected ShareC {
  32. public:
  33.     DosObjectC(ULONG type, struct TagItem *tags = NULL) throw (DosObjectX, MemoryX);
  34.     DosObjectC(ULONG type, Tag tag1type, ...) throw (DosObjectX, MemoryX);
  35.     DosObjectC(ULONG type, APTR object) throw (DosObjectX, MemoryX);
  36.     DosObjectC(const DosObjectC &);
  37.     ~DosObjectC();
  38.     DosObjectC &operator= (const DosObjectC &);
  39.     APTR object() const { return dosobject; };
  40. private:
  41.     APTR dosobject;
  42.     ULONG dostype;
  43.     BOOL priv;
  44. };
  45.  
  46. #endif
  47.