indexing
description: "Encapsulation of standard implementation of IStream interface."
status: "See notice at end of class"
date: "$Date$"
revision: "$Revision$"
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: a_pointer /= default_pointer
ensure ECOM_QUERIABLE
valid_initializer: initializer /= default_pointer
exists: exists
feature
hresult: INTEGER
ECOM_EXCEPTION
require ECOM_EXCEPTION
applicable: is_developer_exception
hresult_code: INTEGER
ECOM_EXCEPTION
require ECOM_EXCEPTION
applicable: is_developer_exception
hresult_facility: INTEGER
ECOM_EXCEPTION
require ECOM_EXCEPTION
applicable: is_developer_exception
hresult_message: STRING
ECOM_EXCEPTION
require ECOM_EXCEPTION
applicable: is_developer_exception
ensure ECOM_EXCEPTION
non_void_message: Result /= void
feature
access_time: WEL_FILE_TIME
Check_instruction: INTEGER is 7
EXCEP_CONST
Class_invariant: INTEGER is 6
EXCEP_CONST
Com_exception: INTEGER is 28
EXCEP_CONST
creation_time: WEL_FILE_TIME
description (stat_flag: INTEGER): ECOM_STATSTG
ECOM_STAT_FLAGSstat_flag
require
valid_stat_flag: is_valid_stat_flag (stat_flag)
ensure
Result /= void
Developer_exception: INTEGER is 24
EXCEP_CONST
end_of_stream: BOOLEAN
readupdate_end_of_streamstartfinish
exists: BOOLEAN
ECOM_QUERIABLE
External_exception: INTEGER is 18
errno
EXCEP_CONST
Floating_point_exception: INTEGER is 5
EXCEP_CONST
Incorrect_inspect_value: INTEGER is 9
EXCEP_CONST
Io_exception: INTEGER is 21
EXCEP_CONST
is_valid_lock (lock: INTEGER): BOOLEAN
lock
ECOM_LOCK_TYPES
is_valid_seek (seek: INTEGER): BOOLEAN
seek
ECOM_STREAM_SEEK
is_valid_stat_flag (flag: INTEGER): BOOLEAN
flag
ECOM_STAT_FLAGS
item: POINTER
ECOM_QUERIABLE
last_boolean: BOOLEAN
BOOLEAN
last_character: CHARACTER
CHARACTER
last_integer: INTEGER
INTEGER
last_real: REAL
REAL
last_string: STRING
STRING
lock_exclusive: INTEGER
ECOM_LOCK_TYPES
lock_onlyonce: INTEGER
ECOM_LOCK_TYPES
lock_write: INTEGER
ECOM_LOCK_TYPES
locks_supported: INTEGER
Loop_invariant: INTEGER is 11
EXCEP_CONST
Loop_variant: INTEGER is 10
EXCEP_CONST
modification_time: WEL_FILE_TIME
name: STRING
No_more_memory: INTEGER is 2
EXCEP_CONST
Operating_system_exception: INTEGER is 22
errno
EXCEP_CONST
Postcondition: INTEGER is 4
EXCEP_CONST
Precondition: INTEGER is 3
EXCEP_CONST
Rescue_exception: INTEGER is 14
EXCEP_CONST
Retrieve_exception: INTEGER is 23
retrievedIO_MEDIUM
EXCEP_CONST
Routine_failure: INTEGER is 8
EXCEP_CONST
Runtime_io_exception: INTEGER is 27
EXCEP_CONST
Signal_exception: INTEGER is 12
EXCEP_CONST
size: ECOM_ULARGE_INTEGER
statflag_default: INTEGER
ECOM_STAT_FLAGS
statflag_noname: INTEGER
ECOM_STAT_FLAGS
stream_seek_cur: INTEGER
ECOM_STREAM_SEEK
stream_seek_end: INTEGER
ECOM_STREAM_SEEK
stream_seek_set: INTEGER
ECOM_STREAM_SEEK
Void_assigned_to_expanded: INTEGER is 19
EXCEP_CONST
Void_call_target: INTEGER is 1
EXCEP_CONST
feature
assertion_violation: BOOLEAN
EXCEPTIONS
class_name: STRING
EXCEPTIONS
developer_exception_name: STRING
EXCEPTIONS
require EXCEPTIONS
applicable: is_developer_exception
exception: INTEGER
EXCEPTIONS
exception_trace: STRING
EXCEPTIONS
is_developer_exception: BOOLEAN
EXCEPTIONS
is_developer_exception_of_name (name: STRING): BOOLEAN
name
EXCEPTIONS
is_signal: BOOLEAN
EXCEPTIONS
is_system_exception: BOOLEAN
EXCEPTIONS
meaning (except: INTEGER): STRING
except
EXCEPTIONS
original_class_name: STRING
EXCEPTIONS
original_exception: INTEGER
EXCEPTIONS
original_recipient_name: STRING
EXCEPTIONS
original_tag_name: STRING
EXCEPTIONS
recipient_name: STRING
EXCEPTIONS
tag_name: STRING
EXCEPTIONS
feature
catch (code: INTEGER)
code
EXCEPTIONS
die (code: INTEGER)
code
EXCEPTIONS
ignore (code: INTEGER)
code
EXCEPTIONS
message_on_failure
EXCEPTIONS
no_message_on_failure
EXCEPTIONS
raise (name: STRING)
name
EXCEPTIONS
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)
offsetcount
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)
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)
displacement
origin
ECOM_STREAM_SEEKorigin
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)
offsetcount
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)
bytes
require
valid_buffer: buffer /= default_pointer
write_boolean (boolean: BOOLEAN)
boolean
write_character (character: CHARACTER)
character
write_integer (integer: INTEGER)
integer
write_real (real: REAL)
real
write_string (string: STRING)
string
require
string /= void
feature
trigger (code: INTEGER)
code
ECOM_EXCEPTION_CODES
ECOM_EXCEPTION
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
ECOM_QUERIABLE
queriable_invariant: initializer /= default_pointer and then exists
end -- ECOM_STREAM