indexing
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"
copyright: "Copyright (c) 1986-2004, Eiffel Software and others"
license: "Eiffel Forum License v2 (see forum.txt)"
date: "$Date: 2008-05-23 17:24:07 -0700 (Fri, 23 May 2008) $"
revision: "$Revision: 170 $"
class interface
STD_FILES
create
default_create
ANY
feature
default_output: PLAIN_TEXT_FILE
error: PLAIN_TEXT_FILE
ensure
error_not_void: Result /= Void
generating_type: STRING_8
ANY
ensure ANY
generating_type_not_void: Result /= Void
generating_type_not_empty: not Result.is_empty
generator: STRING_8
ANY
ensure ANY
generator_not_void: Result /= Void
generator_not_empty: not Result.is_empty
input: PLAIN_TEXT_FILE
ensure
input_not_void: Result /= Void
output: PLAIN_TEXT_FILE
ensure
output_not_void: Result /= Void
standard_default: PLAIN_TEXT_FILE
default_outputOutput
default_output
feature
frozen deep_equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies (other /= Void and then some.same_type (other))
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
frozen is_deep_equal (other: STD_FILES): BOOLEAN
`Current'`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
shallow_implies_deep: standard_is_equal (other) implies Result
same_type: Result implies same_type (other)
symmetric: Result implies other.is_deep_equal (Current)
is_equal (other: STD_FILES): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
frozen standard_equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: STD_FILES): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
feature
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
last_character: CHARACTER_8
read_character
STD_FILESlastchar
last_double: REAL_64
read_double
STD_FILESlastdouble
last_integer: INTEGER_32
read_integer
STD_FILESlastintlast_integer_32
last_integer_16: INTEGER_16
read_integer_16
last_integer_32: INTEGER_32
read_integer
STD_FILESlast_integerlastint
last_integer_64: INTEGER_64
read_integer_64
last_integer_8: INTEGER_8
read_integer_8
last_natural: NATURAL_32
read_natural_32
STD_FILESlast_natural_32
last_natural_16: NATURAL_16
read_natural_16
last_natural_32: NATURAL_32
read_natural_32
STD_FILESlast_natural
last_natural_64: NATURAL_64
read_natural_64
last_natural_8: NATURAL_8
read_natural_8
last_real: REAL_32
read_real
STD_FILESlastreal
last_string: ?STRING_8
read_line
read_streamread_word
STD_FILESlaststring
lastchar: CHARACTER_8
read_character
STD_FILESlast_character
lastdouble: REAL_64
read_double
STD_FILESlast_double
lastint: INTEGER_32
read_integer
STD_FILESlast_integerlast_integer_32
lastreal: REAL_32
read_real
STD_FILESlast_real
laststring: ?STRING_8
read_line
read_streamread_word
STD_FILESlast_string
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
feature
new_line
STD_FILESput_new_line
put_boolean (b: BOOLEAN)
`b'
STD_FILESputbool
put_character (c: CHARACTER_8)
`c'
STD_FILESputchar
put_double (d: REAL_64)
`d'
STD_FILESputdouble
put_integer (i: INTEGER_32)
`i'
STD_FILESputintput_integer_32
put_integer_16 (i: INTEGER_16)
`i'
put_integer_32 (i: INTEGER_32)
`i'
STD_FILESput_integerputint
put_integer_64 (i: INTEGER_64)
`i'
put_integer_8 (i: INTEGER_8)
`i'
put_natural (i: NATURAL_32)
`i'
STD_FILESput_natural_32
put_natural_16 (i: NATURAL_16)
`i'
put_natural_32 (i: NATURAL_32)
`i'
STD_FILESput_natural
put_natural_64 (i: NATURAL_64)
`i'
put_natural_8 (i: NATURAL_8)
`i'
put_new_line
STD_FILESnew_line
put_real (r: REAL_32)
`r'
STD_FILESputreal
put_string (s: STRING_8)
`s'
STD_FILESputstring
require
string_not_void: s /= Void
putbool (b: BOOLEAN)
`b'
STD_FILESput_boolean
putchar (c: CHARACTER_8)
`c'
STD_FILESput_character
putdouble (d: REAL_64)
`d'
STD_FILESput_double
putint (i: INTEGER_32)
`i'
STD_FILESput_integerput_integer_32
putreal (r: REAL_32)
`r'
STD_FILESput_real
putstring (s: STRING_8)
`s'
STD_FILESput_string
require
string_not_void: s /= Void
set_error_default
set_file_default (f: PLAIN_TEXT_FILE)
`f'
require
valid_argument: f /= Void
file_open_write: f.is_open_write
set_output_default
feature
copy (other: STD_FILES)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
frozen deep_copy (other: STD_FILES)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: STD_FILES
ANY
ensure ANY
deep_twin_not_void: Result /= Void
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: STD_FILES)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: STD_FILES
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: STD_FILES
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
frozen default: ?STD_FILES
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
feature
next_line
STD_FILESto_next_line
read_character
last_character
last_character
STD_FILESreadchar
read_double
last_double
STD_FILESreaddouble
read_integer
last_integer
STD_FILESreadintread_integer_32
read_integer_16
last_integer_16
read_integer_32
last_integer
STD_FILESread_integerreadint
read_integer_64
last_integer_64
read_integer_8
last_integer_8
read_line
last_string
STD_FILESreadline
ensure
last_string_not_void: last_string /= Void
read_natural
last_natural
STD_FILESread_natural_32
read_natural_16
last_natural_16
read_natural_32
last_natural
STD_FILESread_natural
read_natural_64
last_natural_64
read_natural_8
last_natural_8
read_real
last_real
STD_FILESreadreal
read_stream (nb_char: INTEGER_32)
`nb_char'
last_string
STD_FILESreadstream
ensure
last_string_not_void: last_string /= Void
read_word
last_string
STD_FILESreadword
ensure
last_string_not_void: last_string /= Void
readchar
last_character
last_character
STD_FILESread_character
readdouble
last_double
STD_FILESread_double
readint
last_integer
STD_FILESread_integerread_integer_32
readline
last_string
STD_FILESread_line
ensure
last_string_not_void: last_string /= Void
readreal
last_real
STD_FILESread_real
readstream (nb_char: INTEGER_32)
`nb_char'
last_string
STD_FILESread_stream
ensure
last_string_not_void: last_string /= Void
readword
last_string
STD_FILESread_word
ensure
last_string_not_void: last_string /= Void
to_next_line
STD_FILESnext_line
feature
io: STD_FILES
ANY
ensure ANY
io_not_void: Result /= Void
out: STRING_8
ANY
ensure ANY
out_not_void: Result /= Void
print (some: ?ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANY
ensure ANY
tagged_out_not_void: Result /= Void
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
ensure ANY
operating_environment_not_void: Result /= Void
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
end STD_FILES