out.sa
Generated by gen_html_sa_files from ICSI. Contact gomes@icsi.berkeley.edu for details
-------------------------> GNU Sather - sourcefile <-------------------------
-- Copyright (C) 2000 by K Hopper, University of Waikato, New Zealand --
-- This file is part of the GNU Sather library. It is free software; you may --
-- redistribute and/or modify it under the terms of the GNU Library General --
-- Public License (LGPL) as published by the Free Software Foundation; --
-- either version 2 of the license, or (at your option) any later version. --
-- This library is distributed in the hope that it will be useful, but --
-- WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See Doc/LGPL for more details. --
-- The license text is also available from: Free Software Foundation, Inc., --
-- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --
--------------> Please email comments to <bug-sather@gnu.org> <--------------
class OUT < $OUT_DEVICE,$OSTREAM
class OUT < $OUT_DEVICE,$OSTREAM is
-- This class implements direct output access to the standard operating
-- system output channel -- for output only!
-- Version 1.3 Nov 98. Copyright K Hopper, U of Waikato
-- Development History
-- -------------------
-- Date Who By Detail
-- ---- ------ ------
-- 5 Apr 96 kh Original
-- 5 Apr 97 kh Modified for style
-- 26 Oct 98 kh Removed $STR, added pre/post conds.
-- 19 Nov 98 kh Added output device abstraction
const output_possible : BOOL := true ;
create : SAME is
-- This routine creates an object to represent the standard output channel.
return self
end ;
plus(ch : CHAR)
pre ~(ch.code = CHAR_CODE::null)
is
-- This routine appends the contents of ch to the standard output channel.
STD_CHANS::stdout.plus(ch)
end ;
plus(ch : CHAR) : SAME
pre ~(ch.code = CHAR_CODE::null)
is
-- This routine returns self after appending the contents of ch to
-- the standard output channel.
STD_CHANS::stdout.plus(ch) ;
return self
end ;
plus(str : STR)
is
-- This routine appends the contents of str to the standard output channel.
STD_CHANS::stdout.plus(str);
end ;
plus(str : STR) : SAME
is
-- This routine returns self after appending the contents of str to
-- the standard output channel.
STD_CHANS::stdout.plus(str) ;
return self
end ;
flush is
-- This routine flushes the output buffer -- useful when issuing
-- a prompt which is required to be shown before input.
STD_CHANS::stdout.flush
end ;
end ; -- class OUT