indexing
description: "COM GUID structure"
status: "See notice at end of class"
date: "$Date$"
revision: "$Revision$"
class interface
ECOM_GUID
create
make
item
ECOM_STRUCTURE
ensure WEL_STRUCTURE
not_shared: not shared
make_from_pointer (a_pointer: POINTER)
require ECOM_STRUCTURE
valid_pointer: a_pointer /= default_pointer
make_from_string (string: STRING)
string
require
non_void_string: string /= void
valid_guid_string: guid_routines.is_valid_guid_string (string)
ensure
valid_item: item /= default_pointer
make_from_guid (other: ECOM_GUID)
other
require
valid_guid: other /= void and then other.item /= default_pointer
ensure
valid_item: item /= default_pointer
feature
item: POINTER
WEL_ANY
feature
guid_routines: ECOM_GUID_ROUTINES
ECOM_ROUTINES
feature
structure_size: INTEGER
ensure WEL_STRUCTURE
positive_result: Result > 0
feature
exists: BOOLEAN
item
WEL_ANY
ensure WEL_ANY
Result = (item /= default_pointer)
shared: BOOLEAN
item
item
destroy_item
item
WEL_ANY
feature
set_shared
shared
WEL_ANY
ensure WEL_ANY
shared: shared
set_unshared
shared
WEL_ANY
ensure WEL_ANY
unshared: not shared
feature
dispose
Current
Current
WEL_ANY
feature
out: STRING
to_definition_string: STRING
require
valid_item: item /= default_pointer
ensure
non_void_representation: Result /= void
to_integer: INTEGER
item
WEL_ANY
ensure WEL_ANY
Result = cwel_pointer_to_integer (item)
to_string: STRING
require
valid_item: item /= default_pointer
ensure
non_void_representation: Result /= void
feature
initialize
WEL_STRUCTURE
require WEL_STRUCTURE
exists: exists
initialize_with_character (a_character: CHARACTER)
a_character
WEL_STRUCTURE
require WEL_STRUCTURE
exists: exists
memory_copy (source_pointer: POINTER; length: INTEGER)
lengthsource_pointeritem
WEL_STRUCTURE
require WEL_STRUCTURE
length_small_enough: length <= structure_size
length_large_enough: length > 0
exists: exists
feature
set_value (source: like Current)
ECOM_STRUCTURE
require ECOM_STRUCTURE
non_void: source /= void
valid_source: source.item /= default_pointer
feature
generate
feature
is_equal (a_guid: ECOM_GUID): BOOLEAN
a_guidCurrent
require ANY
other_not_void: other /= void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
end -- ECOM_GUID