home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / sofa / archive / SmallEiffel.lha / SmallEiffel / lib_std / std_error.e < prev    next >
Text File  |  1999-06-05  |  1KB  |  55 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_ERROR
  13. --
  14. -- To write on the standard error output. As for UNIX, the default
  15. -- standard error file is the screen.
  16. --
  17. -- Note: only one instance of this class should be necessary (have a look
  18. -- in the root classes to search for the good name to use).
  19. -- 
  20.    
  21. inherit OUTPUT_STREAM;
  22.    
  23. creation make
  24.    
  25. feature
  26.  
  27.    is_connected: BOOLEAN is true;
  28.  
  29. feature
  30.    
  31.    make is
  32.       do
  33.       end;
  34.    
  35. feature
  36.  
  37.    put_character(c: CHARACTER) is
  38.       do
  39.          write_byte(stderr,c);
  40.       end;
  41.  
  42.    flush is
  43.       do
  44.          flush_stream(stderr);
  45.       end;
  46.  
  47. feature {NONE}   
  48.    
  49.    stderr: POINTER is
  50.       external "SmallEiffel"
  51.       end;
  52.  
  53. end -- STD_ERROR
  54.  
  55.