home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / eiffel / smalleif.97 / se.t / SmallEiffel / lib_std / std_error.e < prev    next >
Encoding:
Text File  |  1996-05-02  |  860 b   |  46 lines

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class STD_ERROR
  5. --
  6. -- To write on the standard error output. As for UNIX, the default standard 
  7. -- error file is the screen.
  8. --
  9. -- Note: only one instance of this class should be necessary (have a look
  10. -- in the root classes to search for the good name to use).
  11. -- 
  12.    
  13. inherit 
  14.    STD_FILE_WRITE 
  15.       redefine disconnect 
  16.       end;
  17.    
  18. creation 
  19.    make, connect_to
  20.    
  21. feature {ANY}
  22.    
  23.    make is
  24.       do
  25.      output_stream := stderr;
  26.       ensure
  27.      not is_connected
  28.       end;
  29.    
  30.    disconnect is
  31.       local
  32.      err: INTEGER;
  33.       do
  34.      err := fclose(output_stream); 
  35.      path := Void;
  36.      output_stream := stderr;
  37.       end;
  38.       
  39. feature {NONE}   
  40.    
  41.    stderr: POINTER is
  42.       external "CSE"
  43.       end;
  44.  
  45. end -- class STD_ERROR
  46.