indexing
description: "Files viewed as persistent sequences of ASCII characters"
legal: "See notice at end of class."
status: "See notice at end of class."
date: "$Date: 2006-01-22 18:25:44 -0800 (Sun, 22 Jan 2006) $"
revision: "$Revision: 56675 $"
class interface
PLAIN_TEXT_FILE
create
make (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
file_closed: is_closed
make_open_read (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
make_open_write (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_write: is_open_write
make_open_append (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_append: is_open_append
make_open_read_write (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
open_write: is_open_write
make_create_read_write (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
open_write: is_open_write
make_open_read_append (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
open_append: is_open_append
feature
make (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
file_closed: is_closed
make_create_read_write (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
open_write: is_open_write
make_open_append (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_append: is_open_append
make_open_read (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
make_open_read_append (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
open_append: is_open_append
make_open_read_write (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_read: is_open_read
open_write: is_open_write
make_open_write (fn: STRING_8)
`fn'
FILE
require FILE
string_exists: fn /= Void
string_not_empty: not fn.is_empty
ensure FILE
file_named: name = fn
exists: exists
open_write: is_open_write
feature
access_date: INTEGER_32
FILE
require FILE
file_exists: exists
date: INTEGER_32
FILE
require FILE
file_exists: exists
descriptor: INTEGER_32
FILE
require IO_MEDIUM
valid_handle: descriptor_available
require else FILE
file_opened: not is_closed
descriptor_available: BOOLEAN
FILE
file_info: UNIX_FILE_INFO
FILE
file_pointer: POINTER
FILE
generating_type: STRING_8
ANY
generator: STRING_8
ANY
group_id: INTEGER_32
FILE
require FILE
file_exists: exists
has (v: like item): BOOLEAN
`v'
object_comparison
LINEAR
require CONTAINER
True
ensure CONTAINER
not_found_in_empty: Result implies not is_empty
index_of (v: like item; i: INTEGER_32): INTEGER_32
`i'`v'
object_comparison
LINEAR
require LINEAR
positive_occurrences: i > 0
ensure LINEAR
non_negative_result: Result >= 0
inode: INTEGER_32
FILE
require FILE
file_exists: exists
item: CHARACTER_8
FILE
require TRAVERSABLE
not_off: not off
require ACTIVE
readable: readable
links: INTEGER_32
FILE
require FILE
file_exists: exists
name: STRING_8
FILE
occurrences (v: like item): INTEGER_32
`v'
object_comparison
LINEAR
require BAG
True
ensure BAG
non_negative_occurrences: Result >= 0
owner_name: STRING_8
FILE
require FILE
file_exists: exists
position: INTEGER_32
FILE
require LINEAR
True
protection: INTEGER_32
FILE
require FILE
file_exists: exists
retrieved: ANY
`Retrieve_exception'
FILE
require IO_MEDIUM
is_readable: readable
support_storable: support_storable
ensure IO_MEDIUM
result_exists: Result /= Void
separator: CHARACTER_8
FILE
user_id: INTEGER_32
FILE
require FILE
file_exists: exists
feature
count: INTEGER_32
FILE
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 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))
is_equal (other: like Current): 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
same_file (fn: STRING_8): BOOLEAN
`a_filename'
FILE
require FILE
fn_not_void: fn /= Void
fn_not_empty: not fn.is_empty
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: like Current): 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
access_exists: BOOLEAN
FILE
after: BOOLEAN
FILE
before: BOOLEAN
FILE
bytes_read: INTEGER_32
read_to_managed_pointer
IO_MEDIUM
changeable_comparison_criterion: BOOLEAN
object_comparison
CONTAINER
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
end_of_file: BOOLEAN
FILE
require FILE
opened: not is_closed
exhausted: BOOLEAN
LINEAR
ensure LINEAR
exhausted_when_off: off implies Result
exists: BOOLEAN
FILE
require IO_MEDIUM
True
ensure then FILE
unchanged_mode: mode = old mode
extendible: BOOLEAN
FILE
require IO_MEDIUM
True
require COLLECTION
True
file_readable: BOOLEAN
FILE
file_writable: BOOLEAN
FILE
full: BOOLEAN is False
FILE
is_access_executable: BOOLEAN
FILE
require FILE
file_exists: exists
is_access_owner: BOOLEAN
FILE
require FILE
file_exists: exists
is_access_readable: BOOLEAN
FILE
require FILE
file_exists: exists
is_access_writable: BOOLEAN
FILE
require FILE
file_exists: exists
is_block: BOOLEAN
FILE
require FILE
file_exists: exists
is_character: BOOLEAN
FILE
require FILE
file_exists: exists
is_closed: BOOLEAN
FILE
is_creatable: BOOLEAN
FILE
is_device: BOOLEAN
FILE
require FILE
file_exists: exists
is_directory: BOOLEAN
FILE
require FILE
file_exists: exists
is_empty: BOOLEAN
FINITE
require CONTAINER
True
is_executable: BOOLEAN
FILE
require IO_MEDIUM
handle_exists: exists
is_fifo: BOOLEAN
FILE
require FILE
file_exists: exists
is_inserted (v: CHARACTER_8): BOOLEAN
`v'
`has (v)'
COLLECTION
is_open_append: BOOLEAN
FILE
is_open_read: BOOLEAN
FILE
is_open_write: BOOLEAN
FILE
is_owner: BOOLEAN
FILE
require FILE
file_exists: exists
is_plain: BOOLEAN
FILE
require FILE
file_exists: exists
is_plain_text: BOOLEAN
is_readable: BOOLEAN
FILE
require IO_MEDIUM
handle_exists: exists
is_setgid: BOOLEAN
FILE
require FILE
file_exists: exists
is_setuid: BOOLEAN
FILE
require FILE
file_exists: exists
is_socket: BOOLEAN
FILE
require FILE
file_exists: exists
is_sticky: BOOLEAN
FILE
require FILE
file_exists: exists
is_symlink: BOOLEAN
FILE
require FILE
file_exists: exists
is_writable: BOOLEAN
FILE
require IO_MEDIUM
handle_exists: exists
last_character: CHARACTER_8
read_character
IO_MEDIUM
last_double: REAL_64
read_double
IO_MEDIUM
last_integer: INTEGER_32
read_integer
IO_MEDIUM
last_integer_16: INTEGER_16
read_integer_16
IO_MEDIUM
last_integer_32: INTEGER_32
last_integer
IO_MEDIUM
last_integer_64: INTEGER_64
read_integer_64
IO_MEDIUM
last_integer_8: INTEGER_8
read_integer_8
IO_MEDIUM
last_natural: NATURAL_32
read_natural
IO_MEDIUM
last_natural_16: NATURAL_16
read_natural_16
IO_MEDIUM
last_natural_32: NATURAL_32
last_natural
IO_MEDIUM
last_natural_64: NATURAL_64
read_natural_64
IO_MEDIUM
last_natural_8: NATURAL_8
read_natural_8
IO_MEDIUM
last_real: REAL_32
read_real
IO_MEDIUM
last_string: STRING_8
IO_MEDIUM
object_comparison: BOOLEAN
equal`='
`='
CONTAINER
off: BOOLEAN
FILE
require TRAVERSABLE
True
path_exists: BOOLEAN
name
FILE
ensure then FILE
unchanged_mode: mode = old mode
prunable: BOOLEAN
FILE
readable: BOOLEAN
SEQUENCE
require ACTIVE
True
require IO_MEDIUM
handle_exists: exists
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))
support_storable: BOOLEAN is False
writable: BOOLEAN
SEQUENCE
feature
close
FILE
require IO_MEDIUM
medium_is_open: not is_closed
ensure then FILE
is_closed: is_closed
compare_objects
equal
`='
CONTAINER
require CONTAINER
changeable_comparison_criterion: changeable_comparison_criterion
ensure CONTAINER
object_comparison
compare_references
`='
equal
CONTAINER
require CONTAINER
changeable_comparison_criterion: changeable_comparison_criterion
ensure CONTAINER
reference_comparison: not object_comparison
create_read_write
FILE
require FILE
is_closed: is_closed
ensure FILE
exists: exists
open_read: is_open_read
open_write: is_open_write
fd_open_append (fd: INTEGER_32)
`fd'
FILE
ensure FILE
exists: exists
open_append: is_open_append
fd_open_read (fd: INTEGER_32)
`fd'
FILE
ensure FILE
exists: exists
open_read: is_open_read
fd_open_read_append (fd: INTEGER_32)
`fd'
FILE
ensure FILE
exists: exists
open_read: is_open_read
open_append: is_open_append
fd_open_read_write (fd: INTEGER_32)
`fd'
FILE
ensure FILE
exists: exists
open_read: is_open_read
open_write: is_open_write
fd_open_write (fd: INTEGER_32)
`fd'
FILE
ensure FILE
exists: exists
open_write: is_open_write
open_append
FILE
require FILE
is_closed: is_closed
ensure FILE
exists: exists
open_append: is_open_append
open_read
FILE
require FILE
is_closed: is_closed
ensure FILE
exists: exists
open_read: is_open_read
open_read_append
FILE
require FILE
is_closed: is_closed
ensure FILE
exists: exists
open_read: is_open_read
open_append: is_open_append
open_read_write
FILE
require FILE
is_closed: is_closed
ensure FILE
exists: exists
open_read: is_open_read
open_write: is_open_write
open_write
FILE
ensure FILE
exists: exists
open_write: is_open_write
recreate_read_write (fname: STRING_8)
`fname'
FILE
require FILE
is_open: not is_closed
valid_name: fname /= Void
ensure FILE
exists: exists
open_read: is_open_read
open_write: is_open_write
reopen_append (fname: STRING_8)
`fname'
FILE
require FILE
is_open: not is_closed
valid_name: fname /= Void
ensure FILE
exists: exists
open_append: is_open_append
reopen_read (fname: STRING_8)
`fname'
FILE
require FILE
is_open: not is_closed
valid_name: fname /= Void
ensure FILE
exists: exists
open_read: is_open_read
reopen_read_append (fname: STRING_8)
`fname'
FILE
require FILE
is_open: not is_closed
valid_name: fname /= Void
ensure FILE
exists: exists
open_read: is_open_read
open_append: is_open_append
reopen_read_write (fname: STRING_8)
`fname'
FILE
require FILE
is_open: not is_closed
valid_name: fname /= Void
ensure FILE
exists: exists
open_read: is_open_read
open_write: is_open_write
reopen_write (fname: STRING_8)
`fname'
FILE
require FILE
is_open: not is_closed
valid_name: fname /= Void
ensure FILE
exists: exists
open_write: is_open_write
feature
back
FILE
require BILINEAR
not_before: not before
finish
FILE
require LINEAR
True
require else FILE
file_opened: not is_closed
forth
FILE
require LINEAR
not_after: not after
require else FILE
file_opened: not is_closed
go (abs_position: INTEGER_32)
position
FILE
require FILE
file_opened: not is_closed
non_negative_argument: abs_position >= 0
move (offset: INTEGER_32)
`offset'
FILE
require FILE
file_opened: not is_closed
next_line
FILE
require FILE
is_readable: file_readable
recede (abs_position: INTEGER_32)
position
FILE
require FILE
file_opened: not is_closed
non_negative_argument: abs_position >= 0
search (v: like item)
item`v'
`v'
exhausted
object_comparison
BILINEAR
ensure LINEAR
object_found: (not exhausted and object_comparison) implies equal (v, item)
item_found: (not exhausted and not object_comparison) implies v = item
start
FILE
require TRAVERSABLE
True
require else FILE
file_opened: not is_closed
feature
add_permission (who, what: STRING_8)
`who'`what'
FILE
require FILE
who_is_not_void: who /= Void
what_is_not_void: what /= Void
file_descriptor_exists: exists
append (f: like Current)
`f'
FILE
require SEQUENCE
argument_not_void: f /= Void
require else FILE
target_is_closed: is_closed
source_is_closed: f.is_closed
ensure SEQUENCE
new_count: count >= old count
ensure then FILE
new_count: count = old count + f.count
files_closed: f.is_closed and is_closed
basic_store (object: ANY)
`object'
FILE
require IO_MEDIUM
object_not_void: object /= Void
extendible: extendible
support_storable: support_storable
change_date: INTEGER_32
FILE
require FILE
file_exists: exists
change_group (new_group_id: INTEGER_32)
`new_group_id'
FILE
require FILE
file_exists: exists
change_mode (mask: INTEGER_32)
`mask'
FILE
require FILE
file_exists: exists
change_name (new_name: STRING_8)
`new_name'
FILE
require FILE
new_name_not_void: new_name /= Void
new_name_not_empty: not new_name.is_empty
file_exists: exists
ensure FILE
name_changed: name.is_equal (new_name)
change_owner (new_owner_id: INTEGER_32)
`new_owner_id'
FILE
require FILE
file_exists: exists
extend (v: CHARACTER_8)
`v'
FILE
require COLLECTION
extendible: extendible
ensure COLLECTION
item_inserted: is_inserted (v)
ensure then BAG
one_more_occurrence: occurrences (v) = old (occurrences (v)) + 1
fill (other: CONTAINER [CHARACTER_8])
`other'
`other'
COLLECTION
require COLLECTION
other_not_void: other /= Void
extendible: extendible
flush
FILE
require FILE
is_open: not is_closed
force (v: like item)
`v'
SEQUENCE
require SEQUENCE
extendible: extendible
ensure then SEQUENCE
new_count: count = old count + 1
item_inserted: has (v)
general_store (object: ANY)
`object'
FILE
require IO_MEDIUM
object_not_void: object /= Void
extendible: extendible
support_storable: support_storable
independent_store (object: ANY)
`object'
FILE
require IO_MEDIUM
object_not_void: object /= Void
extendible: extendible
support_storable: support_storable
link (fn: STRING_8)
`fn'
`fn'
FILE
require FILE
file_exists: exists
new_line
FILEput_new_line
FILE
require IO_MEDIUM
extendible: extendible
put (v: like item)
`v'
SEQUENCE
require COLLECTION
extendible: extendible
ensure COLLECTION
item_inserted: is_inserted (v)
ensure then SEQUENCE
new_count: count = old count + 1
put_character (c: CHARACTER_8)
`c'
FILEputchar
FILE
require IO_MEDIUM
extendible: extendible
put_managed_pointer (p: MANAGED_POINTER; start_pos, nb_bytes: INTEGER_32)
`nb_bytes'`start_pos'`p'
FILE
require IO_MEDIUM
p_not_void: p /= Void
p_large_enough: p.count >= nb_bytes + start_pos
nb_bytes_non_negative: nb_bytes >= 0
extendible: extendible
put_new_line
FILEnew_line
FILE
require IO_MEDIUM
extendible: extendible
put_string (s: STRING_8)
`s'
FILEputstring
FILE
require IO_MEDIUM
extendible: extendible
non_void: s /= Void
putchar (c: CHARACTER_8)
`c'
FILEput_character
FILE
require IO_MEDIUM
extendible: extendible
putstring (s: STRING_8)
`s'
FILEput_string
FILE
require IO_MEDIUM
extendible: extendible
non_void: s /= Void
remove_permission (who, what: STRING_8)
`who'`what'
FILE
require FILE
who_is_not_void: who /= Void
what_is_not_void: what /= Void
file_descriptor_exists: exists
set_access (time: INTEGER_32)
`time'
FILE
require FILE
file_exists: exists
ensure FILE
acess_date_updated: access_date = time
date_unchanged: date = old date
set_date (time: INTEGER_32)
`time'
FILE
require FILE
file_exists: exists
ensure FILE
access_date_unchanged: access_date = old access_date
date_updated: date = time
stamp (time: INTEGER_32)
`time'
FILE
require FILE
file_exists: exists
ensure FILE
date_updated: date = time
touch
FILE
require FILE
file_exists: exists
ensure FILE
date_changed: date /= old date
feature
delete
FILE
require FILE
exists: exists
dispose
IO_MEDIUM
prune_all (v: like item)
`v'off
SEQUENCE
require COLLECTION
prunable: prunable
ensure COLLECTION
no_more_occurrences: not has (v)
reset (fn: STRING_8)
`fn'
FILE
require FILE
valid_file_name: fn /= Void
ensure FILE
file_renamed: name = fn
file_closed: is_closed
wipe_out
FILE
require COLLECTION
prunable: prunable
require else FILE
is_closed: is_closed
ensure COLLECTION
wiped_out: is_empty
feature
linear_representation: LINEAR [CHARACTER_8]
LINEAR
require CONTAINER
True
feature
copy (other: like Current)
`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: like Current)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: like Current
ANY
ensure ANY
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: like Current)
`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: like Current
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: like Current
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
frozen default: like Current
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
feature
lastchar: CHARACTER_8
read_character
IO_MEDIUM
lastdouble: REAL_64
read_double
IO_MEDIUM
lastint: INTEGER_32
read_integer
IO_MEDIUM
lastreal: REAL_32
read_real
IO_MEDIUM
laststring: STRING_8
IO_MEDIUM
feature
copy_to (file: like Current)
`file'
`file'
FILE
require FILE
file_not_void: file /= Void
file_is_open_write: file.is_open_write
current_is_open_read: is_open_read
feature
read_character
last_character
FILEreadchar
FILE
require IO_MEDIUM
is_readable: readable
require else FILE
is_readable: file_readable
read_double
last_double
PLAIN_TEXT_FILEreaddouble
require IO_MEDIUM
is_readable: readable
require else FILE
is_readable: file_readable
read_integer
last_integer
PLAIN_TEXT_FILEreadintread_integer_32
require IO_MEDIUM
is_readable: readable
require else FILE
is_readable: file_readable
read_integer_16
last_integer_16
require IO_MEDIUM
is_readable: readable
read_integer_32
last_integer
PLAIN_TEXT_FILEread_integerreadint
require IO_MEDIUM
is_readable: readable
read_integer_64
require IO_MEDIUM
is_readable: readable
read_integer_8
last_integer_8
require IO_MEDIUM
is_readable: readable
read_line
last_string
last_string
FILEreadline
FILE
require IO_MEDIUM
is_readable: readable
require else FILE
is_readable: file_readable
ensure IO_MEDIUM
last_string_not_void: last_string /= Void
read_natural
last_natural
PLAIN_TEXT_FILEread_natural_32
require IO_MEDIUM
is_readable: readable
read_natural_16
last_natural_16
require IO_MEDIUM
is_readable: readable
read_natural_32
last_natural
PLAIN_TEXT_FILEread_natural
require IO_MEDIUM
is_readable: readable
read_natural_64
last_natural_64
require IO_MEDIUM
is_readable: readable
read_natural_8
last_natural_8
require IO_MEDIUM
is_readable: readable
read_real
last_real
PLAIN_TEXT_FILEreadreal
require IO_MEDIUM
is_readable: readable
require else FILE
is_readable: file_readable
read_stream (nb_char: INTEGER_32)
`nb_char'
last_string
FILEreadstream
FILE
require IO_MEDIUM
is_readable: readable
require else FILE
is_readable: file_readable
ensure IO_MEDIUM
last_string_not_void: last_string /= Void
read_to_managed_pointer (p: MANAGED_POINTER; start_pos, nb_bytes: INTEGER_32)
`nb_bytes'
`p'`start_pos'
FILE
require IO_MEDIUM
p_not_void: p /= Void
p_large_enough: p.count >= nb_bytes + start_pos
nb_bytes_non_negative: nb_bytes >= 0
is_readable: readable
require else FILE
p_not_void: p /= Void
p_large_enough: p.count >= nb_bytes + start_pos
is_readable: file_readable
ensure IO_MEDIUM
bytes_read_non_negative: bytes_read >= 0
bytes_read_not_too_big: bytes_read <= nb_bytes
read_word
last_string
FILEreadword
FILE
require FILE
is_readable: file_readable
ensure FILE
last_string_not_void: last_string /= Void
readchar
last_character
FILEread_character
FILE
require IO_MEDIUM
is_readable: readable
require else FILE
is_readable: file_readable
readdouble
last_double
PLAIN_TEXT_FILEread_double
require IO_MEDIUM
is_readable: readable
require else FILE
is_readable: file_readable
readint
last_integer
PLAIN_TEXT_FILEread_integerread_integer_32
require IO_MEDIUM
is_readable: readable
require else FILE
is_readable: file_readable
readline
last_string
last_string
FILEread_line
FILE
require IO_MEDIUM
is_readable: readable
require else FILE
is_readable: file_readable
ensure IO_MEDIUM
last_string_not_void: last_string /= Void
readreal
last_real
PLAIN_TEXT_FILEread_real
require IO_MEDIUM
is_readable: readable
require else FILE
is_readable: file_readable
readstream (nb_char: INTEGER_32)
`nb_char'
last_string
FILEread_stream
FILE
require IO_MEDIUM
is_readable: readable
require else FILE
is_readable: file_readable
ensure IO_MEDIUM
last_string_not_void: last_string /= Void
readword
last_string
FILEread_word
FILE
require FILE
is_readable: file_readable
ensure FILE
last_string_not_void: last_string /= Void
feature
do_all (action: PROCEDURE [ANY, TUPLE [CHARACTER_8]])
`action'
`action'
LINEAR
require TRAVERSABLE
action_exists: action /= Void
do_if (action: PROCEDURE [ANY, TUPLE [CHARACTER_8]]; test: FUNCTION [ANY, TUPLE [CHARACTER_8], BOOLEAN])
`action'`test'
`action'`test'
LINEAR
require TRAVERSABLE
action_exists: action /= Void
test_exits: test /= Void
for_all (test: FUNCTION [ANY, TUPLE [CHARACTER_8], BOOLEAN]): BOOLEAN
`test'
`test'
LINEAR
require TRAVERSABLE
test_exits: test /= Void
ensure then LINEAR
empty: is_empty implies Result
there_exists (test: FUNCTION [ANY, TUPLE [CHARACTER_8], BOOLEAN]): BOOLEAN
`test'
`test'
LINEAR
require TRAVERSABLE
test_exits: test /= Void
feature
io: STD_FILES
ANY
out: STRING_8
ANYtagged_out
ANY
print (some: ANY)
`some'
ANY
put_boolean (b: BOOLEAN)
`b'
PLAIN_TEXT_FILEputbool
require IO_MEDIUM
extendible: extendible
put_double (d: REAL_64)
`d'
PLAIN_TEXT_FILEputdouble
require IO_MEDIUM
extendible: extendible
put_integer (i: INTEGER_32)
`i'
PLAIN_TEXT_FILEputintput_integer_32
require IO_MEDIUM
extendible: extendible
put_integer_16 (i: INTEGER_16)
`i'
require IO_MEDIUM
extendible: extendible
put_integer_32 (i: INTEGER_32)
`i'
PLAIN_TEXT_FILEput_integerputint
require IO_MEDIUM
extendible: extendible
put_integer_64 (i: INTEGER_64)
`i'
require IO_MEDIUM
extendible: extendible
put_integer_8 (i: INTEGER_8)
`i'
require IO_MEDIUM
extendible: extendible
put_natural (i: NATURAL_32)
`i'
PLAIN_TEXT_FILEput_natural_32
require IO_MEDIUM
extendible: extendible
put_natural_16 (i: NATURAL_16)
`i'
require IO_MEDIUM
extendible: extendible
put_natural_32 (i: NATURAL_32)
`i'
PLAIN_TEXT_FILEput_natural
require IO_MEDIUM
extendible: extendible
put_natural_64 (i: NATURAL_64)
`i'
require IO_MEDIUM
extendible: extendible
put_natural_8 (i: NATURAL_8)
`i'
require IO_MEDIUM
extendible: extendible
put_real (r: REAL_32)
`r'
PLAIN_TEXT_FILEputreal
require IO_MEDIUM
extendible: extendible
putbool (b: BOOLEAN)
`b'
PLAIN_TEXT_FILEput_boolean
require IO_MEDIUM
extendible: extendible
putdouble (d: REAL_64)
`d'
PLAIN_TEXT_FILEput_double
require IO_MEDIUM
extendible: extendible
putint (i: INTEGER_32)
`i'
PLAIN_TEXT_FILEput_integerput_integer_32
require IO_MEDIUM
extendible: extendible
putreal (r: REAL_32)
`r'
PLAIN_TEXT_FILEput_real
require IO_MEDIUM
extendible: extendible
frozen tagged_out: STRING_8
ANYout
ANY
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
invariant
plain_text: is_plain_text
FILE
valid_mode: closed_file <= mode and mode <= append_read_file
name_exists: name /= Void
name_not_empty: not name.is_empty
FINITE
empty_definition: is_empty = (count = 0)
non_negative_count: count >= 0
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
ACTIVE
writable_constraint: writable implies readable
empty_constraint: is_empty implies (not readable) and (not writable)
BILINEAR
not_both: not (after and before)
before_constraint: before implies off
LINEAR
after_constraint: after implies off
TRAVERSABLE
empty_constraint: is_empty implies off
indexing
library: "EiffelBase: Library of reusable components for Eiffel."
copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software
356 Storke Road, Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end PLAIN_TEXT_FILE