indexing
description: "Encapsulation of standard implementation of IStream interface."
legal: "See notice at end of class."
status: "See notice at end of class."
date: "$Date: 2008-02-14 02:30:05 -0800 (Thu, 14 Feb 2008) $"
revision: "$Revision: 72306 $"
class interface
ECOM_STREAM
create
make_from_other (other: ECOM_INTERFACE)
ECOM_QUERIABLE
require ECOM_QUERIABLE
non_void_other: other /= Void
ensure ECOM_QUERIABLE
valid_initializer: initializer /= default_pointer
exists: exists
make_from_pointer (cpp_obj: POINTER)
require ECOM_QUERIABLE
non_default_pointer: cpp_obj /= default_pointer
ensure ECOM_QUERIABLE
valid_initializer: initializer /= default_pointer
exists: exists
feature
access_time: WEL_FILE_TIME
creation_time: WEL_FILE_TIME
description (stat_flag: INTEGER_32): ECOM_STATSTG
`stat_flag'
require
valid_stat_flag: is_valid_stat_flag (stat_flag)
ensure
Result /= Void
end_of_stream: BOOLEAN
readupdate_end_of_streamstartfinish
exception_manager: EXCEPTION_MANAGER
EXCEPTION_MANAGER_FACTORY
ensure EXCEPTION_MANAGER_FACTORY
exception_manager_not_void: Result /= Void
exists: BOOLEAN
ECOM_QUERIABLE
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
is_valid_lock (lock: INTEGER_32): BOOLEAN
`lock'
ECOM_LOCK_TYPES
is_valid_seek (seek: INTEGER_32): BOOLEAN
seek
ECOM_STREAM_SEEK
is_valid_stat_flag (flag: INTEGER_32): BOOLEAN
`flag'
ECOM_STAT_FLAGS
item: POINTER
ECOM_QUERIABLE
last_boolean: BOOLEAN
last_character: CHARACTER_8
last_integer: INTEGER_32
last_real: REAL_32
last_string: STRING_8
lock_exclusive: INTEGER_32
ECOM_LOCK_TYPES
lock_onlyonce: INTEGER_32
ECOM_LOCK_TYPES
lock_write: INTEGER_32
ECOM_LOCK_TYPES
locks_supported: INTEGER_32
modification_time: WEL_FILE_TIME
name: STRING_8
size: ECOM_ULARGE_INTEGER
statflag_default: INTEGER_32
ECOM_STAT_FLAGS
statflag_noname: INTEGER_32
ECOM_STAT_FLAGS
stream_seek_cur: INTEGER_32
ECOM_STREAM_SEEK
stream_seek_end: INTEGER_32
ECOM_STREAM_SEEK
stream_seek_set: INTEGER_32
ECOM_STREAM_SEEK
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: ECOM_STREAM): 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: ECOM_STREAM): 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: ECOM_STREAM): 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
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
copy (other: ECOM_STREAM)
`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: ECOM_STREAM)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: ECOM_STREAM
ANY
ensure ANY
deep_twin_not_void: Result /= Void
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: ECOM_STREAM)
`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: ECOM_STREAM
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: ECOM_STREAM
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
frozen default: ?ECOM_STREAM
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
feature
clone_stream: ECOM_STREAM
ensure
clone_created: Result /= Void and then Result.exists
copy_to (destination: ECOM_STREAM; bytes: ECOM_ULARGE_INTEGER)
`bytes'
`destination'
require
valid_destination: destination /= Void and then destination.exists
valid_bytes_number: bytes /= Void and then bytes.exists
finish
ensure
at_end: end_of_stream
lock_region (offset, count: ECOM_ULARGE_INTEGER; lock: INTEGER_32)
`offset'`count'
require
valid_offset: offset /= Void and then offset.exists
valid_count: count /= Void and then count.exists
valid_lock: is_valid_lock (lock)
read (buffer: POINTER; bytes: INTEGER_32)
`bytes'
`buffer'
require
valid_buffer: buffer /= default_pointer
valid_bytes: bytes >= 0
read_boolean
read_character
read_integer
read_real
read_string
seek (displacement: ECOM_LARGE_INTEGER; origin: INTEGER_32)
`displacement'
`origin'
`origin'
require
non_void_displacement: displacement /= Void
valid_displacement: displacement.exists
valid_seek_origin: is_valid_seek (origin)
set_size (new_size: ECOM_ULARGE_INTEGER)
`new_size'
require
valid_new_size: new_size /= Void and then new_size.exists
ensure
size = new_size
start
ensure
not_end: not end_of_stream
unlock_region (offset, count: ECOM_ULARGE_INTEGER; lock: INTEGER_32)
`offset'`count'
require
valid_offset: offset /= Void and then offset.exists
valid_count: count /= Void and then count.exists
valid_lock: is_valid_lock (lock)
update_end_of_stream
end_of_stream
write (buffer: POINTER; bytes: INTEGER_32)
`bytes'
require
valid_buffer: buffer /= default_pointer
write_boolean (boolean: BOOLEAN)
`boolean'
write_character (character: CHARACTER_8)
`character'
write_integer (integer: INTEGER_32)
`integer'
write_real (real: REAL_32)
`real'
write_string (string: STRING_8)
`string'
require
string /= Void
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
ECOM_QUERIABLE
queriable_invariant: initializer /= default_pointer and then exists
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
indexing
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 ECOM_STREAM