home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume44 / toy_os / part03 / computer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-05  |  778 b   |  39 lines

  1. // This may look like C code, but it is really -*- C++ -*-
  2. /*
  3.  ************************************************************************
  4.  *
  5.  *               UNT Virtual Machine
  6.  *
  7.  * This file describes the configuarion of the virtual computer,
  8.  * i.e. all the pieces it is built from
  9.  *
  10.  ************************************************************************
  11.  */
  12.  
  13. #ifndef _computer_h
  14. #define _computer_h 1
  15. #pragma interface
  16.  
  17. #include "hardware.h"
  18.  
  19. class Computer
  20. {
  21. public:
  22.   Memory memory;
  23.   CentralProcessingUnit CPU;
  24.   IOBus io_bus;
  25.   CardReader card_reader;
  26.   LinePrinter line_printer;
  27.   HardDisk hard_disk;
  28.  
  29. public:
  30.   Computer(void) : CPU(memory), card_reader(memory,io_bus),
  31.              line_printer(memory,io_bus),
  32.              hard_disk(memory,io_bus) {}
  33.  
  34.   ~Computer(void) {}
  35. };
  36.  
  37. #endif
  38.  
  39.