note
	description: "[
		Commonly used input and output mechanisms.
		This class may be used as either ancestor or supplier
		by classes needing its facilities.
	]"
	library: "Free implementation of ELKS library"
	status: "See notice at end of class."
	legal: "See notice at end of class."
	date: "$Date: 2020-05-19 14:29:33 +0000 (Tue, 19 May 2020) $"
	revision: "$Revision: 104259 $"

class interface
	STD_FILES

create 
	default_create

feature -- Access

	Input: PLAIN_TEXT_FILE
			-- Standard input file
		ensure
			instance_free: class
			input_not_void: Result /= Void

	Output: PLAIN_TEXT_FILE
			-- Standard output file
		ensure
			instance_free: class
			output_not_void: Result /= Void

	Error: PLAIN_TEXT_FILE
			-- Standard error file
		ensure
			instance_free: class
			error_not_void: Result /= Void

	default_output: detachable PLAIN_TEXT_FILE
			-- Default output

	standard_default: PLAIN_TEXT_FILE
			-- Return the default_output or Output
			-- if default_output is Void.
	
feature -- Status report

	last_character: CHARACTER_8
			-- Last character read by read_character
			-- Was declared in STD_FILES as synonym of lastchar.
		ensure
			instance_free: class

	lastchar: CHARACTER_8
			-- Last character read by read_character
			-- Was declared in STD_FILES as synonym of last_character.
		ensure
			instance_free: class

	last_integer: INTEGER_32
			-- Last integer read by read_integer
			-- Was declared in STD_FILES as synonym of lastint and last_integer_32.
		ensure
			instance_free: class

	lastint: INTEGER_32
			-- Last integer read by read_integer
			-- Was declared in STD_FILES as synonym of last_integer and last_integer_32.
		ensure
			instance_free: class

	last_integer_32: INTEGER_32
			-- Last integer read by read_integer
			-- Was declared in STD_FILES as synonym of last_integer and lastint.
		ensure
			instance_free: class

	last_integer_8: INTEGER_8
			-- Last 8-bit integer read by read_integer_8
		ensure
			instance_free: class

	last_integer_16: INTEGER_16
			-- Last 16-bit integer read by read_integer_16
		ensure
			instance_free: class

	last_integer_64: INTEGER_64
			-- Last 8-bit integer read by read_integer_64
		ensure
			instance_free: class

	last_natural_8: NATURAL_8
			-- Last 8-bit natural read by read_natural_8
		ensure
			instance_free: class

	last_natural_16: NATURAL_16
			-- Last 16-bit natural read by read_natural_16
		ensure
			instance_free: class

	last_natural: NATURAL_32
			-- Last 32-bit natural read by read_natural_32
			-- Was declared in STD_FILES as synonym of last_natural_32.
		ensure
			instance_free: class

	last_natural_32: NATURAL_32
			-- Last 32-bit natural read by read_natural_32
			-- Was declared in STD_FILES as synonym of last_natural.
		ensure
			instance_free: class

	last_natural_64: NATURAL_64
			-- Last 64-bit natural read by read_natural_64
		ensure
			instance_free: class

	last_real: REAL_32
			-- Last real read by read_real
			-- Was declared in STD_FILES as synonym of lastreal and last_real_32.
		ensure
			instance_free: class

	lastreal: REAL_32
			-- Last real read by read_real
			-- Was declared in STD_FILES as synonym of last_real and last_real_32.
		ensure
			instance_free: class

	last_real_32: REAL_32
			-- Last real read by read_real
			-- Was declared in STD_FILES as synonym of last_real and lastreal.
		ensure
			instance_free: class

	last_string: STRING_8
			-- Last string read by read_line,
			-- read_stream, or read_word
			-- Was declared in STD_FILES as synonym of laststring.
		ensure
			instance_free: class

	laststring: STRING_8
			-- Last string read by read_line,
			-- read_stream, or read_word
			-- Was declared in STD_FILES as synonym of last_string.
		ensure
			instance_free: class

	last_double: REAL_64
			-- Last double read by read_double.
			-- Was declared in STD_FILES as synonym of lastdouble and last_real_64.
		ensure
			instance_free: class

	lastdouble: REAL_64
			-- Last double read by read_double.
			-- Was declared in STD_FILES as synonym of last_double and last_real_64.
		ensure
			instance_free: class

	last_real_64: REAL_64
			-- Last double read by read_double.
			-- Was declared in STD_FILES as synonym of last_double and lastdouble.
		ensure
			instance_free: class
	
feature -- Element change

	set_error_default
			-- Use standard error as default output.

	set_file_default (f: PLAIN_TEXT_FILE)
			-- Use f as default output.
		require
			valid_argument: f /= Void
			file_open_write: f.is_open_write

	set_output_default
			-- Use standard output as default output.

	put_character (c: CHARACTER_8)
			-- Write c at end of default output.
			-- Was declared in STD_FILES as synonym of putchar.

	putchar (c: CHARACTER_8)
			-- Write c at end of default output.
			-- Was declared in STD_FILES as synonym of put_character.

	put_string (s: READABLE_STRING_8)
			-- Write s at end of default output.
			-- Was declared in STD_FILES as synonym of putstring.
		require
			string_not_void: s /= Void

	putstring (s: READABLE_STRING_8)
			-- Write s at end of default output.
			-- Was declared in STD_FILES as synonym of put_string.
		require
			string_not_void: s /= Void

	put_string_32 (s: READABLE_STRING_32)
			-- Write s at end of default output.
		require
			string_not_void: s /= Void

	put_real (r: REAL_32)
			-- Write r at end of default output.
			-- Was declared in STD_FILES as synonym of putreal and put_real_32.

	putreal (r: REAL_32)
			-- Write r at end of default output.
			-- Was declared in STD_FILES as synonym of put_real and put_real_32.

	put_real_32 (r: REAL_32)
			-- Write r at end of default output.
			-- Was declared in STD_FILES as synonym of put_real and putreal.

	put_double (d: REAL_64)
			-- Write d at end of default output.
			-- Was declared in STD_FILES as synonym of putdouble and put_real_64.

	putdouble (d: REAL_64)
			-- Write d at end of default output.
			-- Was declared in STD_FILES as synonym of put_double and put_real_64.

	put_real_64 (d: REAL_64)
			-- Write d at end of default output.
			-- Was declared in STD_FILES as synonym of put_double and putdouble.

	put_integer (i: INTEGER_32)
			-- Write i at end of default output.
			-- Was declared in STD_FILES as synonym of putint and put_integer_32.

	putint (i: INTEGER_32)
			-- Write i at end of default output.
			-- Was declared in STD_FILES as synonym of put_integer and put_integer_32.

	put_integer_32 (i: INTEGER_32)
			-- Write i at end of default output.
			-- Was declared in STD_FILES as synonym of put_integer and putint.

	put_integer_8 (i: INTEGER_8)
			-- Write i at end of default output.

	put_integer_16 (i: INTEGER_16)
			-- Write i at end of default output.

	put_integer_64 (i: INTEGER_64)
			-- Write i at end of default output.

	put_natural_8 (i: NATURAL_8)
			-- Write i at end of default output.

	put_natural_16 (i: NATURAL_16)
			-- Write i at end of default output.

	put_natural (i: NATURAL_32)
			-- Write i at end of default output.
			-- Was declared in STD_FILES as synonym of put_natural_32.

	put_natural_32 (i: NATURAL_32)
			-- Write i at end of default output.
			-- Was declared in STD_FILES as synonym of put_natural.

	put_natural_64 (i: NATURAL_64)
			-- Write i at end of default output.

	put_boolean (b: BOOLEAN)
			-- Write b at end of default output.
			-- Was declared in STD_FILES as synonym of putbool.

	putbool (b: BOOLEAN)
			-- Write b at end of default output.
			-- Was declared in STD_FILES as synonym of put_boolean.

	put_new_line
			-- Write line feed at end of default output.
			-- Was declared in STD_FILES as synonym of new_line.

	new_line
			-- Write line feed at end of default output.
			-- Was declared in STD_FILES as synonym of put_new_line.
	
feature -- Input

	read_integer
			-- Read a new 32-bit integer from standard input.
			-- Make result available in last_integer.
			-- Was declared in STD_FILES as synonym of readint and read_integer_32.
		ensure
			instance_free: class

	readint
			-- Read a new 32-bit integer from standard input.
			-- Make result available in last_integer.
			-- Was declared in STD_FILES as synonym of read_integer and read_integer_32.
		ensure
			instance_free: class

	read_integer_32
			-- Read a new 32-bit integer from standard input.
			-- Make result available in last_integer.
			-- Was declared in STD_FILES as synonym of read_integer and readint.
		ensure
			instance_free: class

	read_integer_8
			-- Read a new 8-bit integer from standard input.
			-- Make result available in last_integer_8.
		ensure
			instance_free: class

	read_integer_16
			-- Read a new 16-bit integer from standard input.
			-- Make result available in last_integer_16.
		ensure
			instance_free: class

	read_integer_64
			-- Read a new 64-bit integer from standard input.
			-- Make result available in last_integer_64.
		ensure
			instance_free: class

	read_natural_8
			-- Read a new 8-bit natural from standard input.
			-- Make result available in last_natural_8.
		ensure
			instance_free: class

	read_natural_16
			-- Read a new 16-bit natural from standard input.
			-- Make result available in last_natural_16.
		ensure
			instance_free: class

	read_natural
			-- Read a new 32-bit natural from standard input.
			-- Make result available in last_natural.
			-- Was declared in STD_FILES as synonym of read_natural_32.
		ensure
			instance_free: class

	read_natural_32
			-- Read a new 32-bit natural from standard input.
			-- Make result available in last_natural.
			-- Was declared in STD_FILES as synonym of read_natural.
		ensure
			instance_free: class

	read_natural_64
			-- Read a new 64-bit natural from standard input.
			-- Make result available in last_natural_64.
		ensure
			instance_free: class

	read_real
			-- Read a new real from standard input.
			-- Make result available in last_real.
			-- Was declared in STD_FILES as synonym of readreal.
		ensure
			instance_free: class

	readreal
			-- Read a new real from standard input.
			-- Make result available in last_real.
			-- Was declared in STD_FILES as synonym of read_real.
		ensure
			instance_free: class

	read_double
			-- Read a new double from standard input.
			-- Make result available in last_double.
			-- Was declared in STD_FILES as synonym of readdouble.
		ensure
			instance_free: class

	readdouble
			-- Read a new double from standard input.
			-- Make result available in last_double.
			-- Was declared in STD_FILES as synonym of read_double.
		ensure
			instance_free: class

	read_line
			-- Read a line from standard input.
			-- Make result available in last_string.
			-- Was declared in STD_FILES as synonym of readline.
		ensure
			instance_free: class
			last_string_not_void: last_string /= Void

	readline
			-- Read a line from standard input.
			-- Make result available in last_string.
			-- Was declared in STD_FILES as synonym of read_line.
		ensure
			instance_free: class
			last_string_not_void: last_string /= Void

	read_stream (nb_char: INTEGER_32)
			-- Read a string of at most nb_char bound characters
			-- from standard input.
			-- Make result available in last_string.
			-- Was declared in STD_FILES as synonym of readstream.
		ensure
			instance_free: class
			last_string_not_void: last_string /= Void

	readstream (nb_char: INTEGER_32)
			-- Read a string of at most nb_char bound characters
			-- from standard input.
			-- Make result available in last_string.
			-- Was declared in STD_FILES as synonym of read_stream.
		ensure
			instance_free: class
			last_string_not_void: last_string /= Void

	read_word
			-- Read a new word from standard input.
			-- Make result available in last_string.
			-- Was declared in STD_FILES as synonym of readword.
		ensure
			instance_free: class
			last_string_not_void: last_string /= Void

	readword
			-- Read a new word from standard input.
			-- Make result available in last_string.
			-- Was declared in STD_FILES as synonym of read_word.
		ensure
			instance_free: class
			last_string_not_void: last_string /= Void

	read_character
			-- Read a new character from standard input.
			-- It will not return until read operation is
			-- terminated when enter key is pressed.
			-- Make result available in last_character.
			-- last_character will also contains platform
			-- specific newline character.
			-- Was declared in STD_FILES as synonym of readchar.
		ensure
			instance_free: class

	readchar
			-- Read a new character from standard input.
			-- It will not return until read operation is
			-- terminated when enter key is pressed.
			-- Make result available in last_character.
			-- last_character will also contains platform
			-- specific newline character.
			-- Was declared in STD_FILES as synonym of read_character.
		ensure
			instance_free: class

	to_next_line
			-- Move to next input line on standard input.
			-- Was declared in STD_FILES as synonym of next_line.
		ensure
			instance_free: class

	next_line
			-- Move to next input line on standard input.
			-- Was declared in STD_FILES as synonym of to_next_line.
		ensure
			instance_free: class
	
note
	copyright: "Copyright (c) 1984-2020, Eiffel Software and others"
	license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
	source: "[
		Eiffel Software
		5949 Hollister Ave., Goleta, CA 93117 USA
		Telephone 805-685-1006, Fax 805-685-6869
		Website http://www.eiffel.com
		Customer support http://support.eiffel.com
	]"

end -- class STD_FILES

Generated by ISE EiffelStudio