home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 8 / IOPROG_8.ISO / install / fips / source / host_os.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-25  |  797 b   |  35 lines

  1. // host_os.h    host operating system classes
  2.  
  3. //        dave mccaldon (d.mccalden@staffordshire.ac.uk)
  4.  
  5.  
  6.  
  7. #ifndef HOST_OS_H
  8.  
  9. #define HOST_OS_H
  10.  
  11.  
  12.  
  13. #include "types.h"
  14.  
  15.  
  16.  
  17. #define    NOT_OK        0        // NOT_OK for FIPS to run
  18.  
  19. #define    OK        1        // OK for FIPS to run
  20.  
  21. #define UNKNOWN        2
  22.  
  23.  
  24.  
  25.  
  26.  
  27. class host_os
  28.  
  29. {
  30.  
  31. public:
  32.  
  33.     host_os();                      // constructor
  34.  
  35.     virtual int     ok () { return status; };
  36.  
  37.     virtual char    *information( char * );
  38.  
  39.  
  40.  
  41. protected:
  42.  
  43.     char* (*format)();
  44.  
  45.  
  46.  
  47.     void msdos_version ();
  48.  
  49.     boolean mswindows_detect ();
  50.  
  51.     boolean dosemu_detect ();
  52.  
  53.     boolean desqview_detect ();
  54.  
  55.  
  56.  
  57.     int             status;         // status value
  58.  
  59.     int             ver_major;      // major version number
  60.  
  61.     int             ver_minor;      // minor version number
  62.  
  63. };
  64.  
  65.  
  66.  
  67. #endif
  68.  
  69.