home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / sofa / archive / SmallEiffel.lha / SmallEiffel / lib_std / std_output.e < prev    next >
Text File  |  1999-06-05  |  1KB  |  57 lines

  1. -- This file is  free  software, which  comes  along  with  SmallEiffel. This
  2. -- software  is  distributed  in the hope that it will be useful, but WITHOUT 
  3. -- ANY  WARRANTY;  without  even  the  implied warranty of MERCHANTABILITY or
  4. -- FITNESS  FOR A PARTICULAR PURPOSE. You can modify it as you want, provided
  5. -- this header is kept unaltered, and a notification of the changes is added.
  6. -- You  are  allowed  to  redistribute  it and sell it, alone or as a part of 
  7. -- another product.
  8. --          Copyright (C) 1994-98 LORIA - UHP - CRIN - INRIA - FRANCE
  9. --            Dominique COLNET and Suzanne COLLIN - colnet@loria.fr 
  10. --                       http://SmallEiffel.loria.fr
  11. --
  12. class STD_OUTPUT
  13. --
  14. -- To use the standard output file. As for UNIX, the default standard 
  15. -- output is the screen.
  16. --
  17. -- Notes: - the predefined `std_output' should be use to have only one instance 
  18. --        of the class STD_OUTPUT,
  19. --        - to do reading or writing at the same time on the screen, 
  20. --        see STD_INPUT_OUTPUT,
  21. --
  22.    
  23. inherit OUTPUT_STREAM;
  24.    
  25. creation make
  26.  
  27. feature
  28.    
  29.    is_connected: BOOLEAN is true;
  30.  
  31. feature
  32.  
  33.    make is
  34.       do
  35.       end;
  36.  
  37. feature
  38.  
  39.    put_character(c: CHARACTER) is
  40.       do
  41.          write_byte(stdout,c);
  42.       end;
  43.  
  44.    flush is
  45.       do
  46.          flush_stream(stdout);
  47.       end;
  48.  
  49. feature {NONE}
  50.    
  51.    stdout: POINTER is
  52.       external "SmallEiffel"
  53.       end;
  54.  
  55. end -- STD_OUTPUT
  56.  
  57.