class STD_INPUT_OUTPUT
Summary
Class invariant
Overview
creation features
exported features
meaningless features:
Skipping separators:
To read one number at a time:
To read one line or one word at a time:
Other features:
To write a number:
Other features:
is_connected: BOOLEAN
True if the stream is connected.
disconnect
Try to disconnect the stream.
end_of_input: BOOLEAN
end_of_input means the previous attempt in character reading failed because the end has been reached.
can_unread_character: BOOLEAN
filtered_descriptor: INTEGER_32
Find the descriptor of the terminal stream...
filtered_has_descriptor: BOOLEAN
attribute
True if the underlying terminal stream has a descriptor
filtered_stream_pointer: POINTER
Find the pointer of the terminal stream...
filtered_has_stream_pointer: BOOLEAN
attribute
True if the underlying terminal stream has a pointer
can_disconnect: BOOLEAN
attribute
True if the stream can be safely disconnected (without data loss, etc.)
detach
can_read_character: BOOLEAN
attribute
Note that this state is usually temporary.
can_read_line: BOOLEAN
attribute
valid_last_character: BOOLEAN
attribute
read_character
If read_character fail, end_of_input is set.
read_line_in (buffer: STRING)
Same job as read_line but storage is directly done in buffer.
read_available_in (buffer: STRING, limit: INTEGER_32)
Same job as read_available but storage is directly done in buffer.
unread_character
last_character: CHARACTER
attribute
The filter that uses this stream as backend
event_can_read: EVENT_DESCRIPTOR
descriptor: INTEGER_32
Some OS-dependent descriptor.
has_descriptor: BOOLEAN
True if that stream can be associated to some OS-meaningful descriptor.
is_filtered: BOOLEAN
deferred
skip_separators
Skip all separators (see is_separator of class CHARACTER) and make the first non-separator available in last_character.
skip_separators_using (separators: STRING)
Same job as skip_separators using the separators set.
skip_remainder_of_line
Skip all the remainder of the line including the end of line delimiter itself.
read_integer
Read an integer according to the Eiffel syntax.
last_integer: INTEGER_32
attribute
Last integer read using read_integer.
valid_last_integer: BOOLEAN
attribute
Was the last call to read_integer successful ?
last_real: REAL_64
attribute
Last real read with read_real.
valid_last_real: BOOLEAN
attribute
Was the last call to read_real successful ?
read_real
Read a REAL and make the result available in last_real.
last_string: STRING
once
Access to the unique common buffer to get for example the result computed by read_line, read_word, newline, etc.
read_line
Read a complete line ended by '%N' or end_of_input.%
read_available (limit: INTEGER_32)
Read as many characters as possible, as long as the stream does not block and up to the given limit.
read_word
Read a word using is_separator of class CHARACTER.
newline
Consume input until newline ('%N') is found.
reach_and_skip (keyword: STRING)
Try to skip enough characters in order to reach the keyword which is skipped too.
read_word_using (separators: STRING)
Same job as read_word using separators.
read_tail_in (str: STRING)
Read all remaining character of the stream in str.
set_filter (a_filter: FILTER)
Used by the filter itself to get attached
can_put_character (c: CHARACTER): BOOLEAN
put_character (c: CHARACTER)
flush
Flushes the pipe.
event_can_write: EVENT_DESCRIPTOR
put_string (s: STRING)
Output s to current output device.
put_unicode_string (unicode_string: UNICODE_STRING)
Output the UTF-8 encoding of the unicode_string.
put_line (s: STRING)
Output the string followed by a '%N'.
put_integer (i: INTEGER_64)
frozen
Output i to current output device.
put_integer_format (i: INTEGER_64, s: INTEGER_32)
frozen
Output i to current output device using at most s character.
put_real (r: REAL_64)
Output r to current output device.
put_real_format (r: REAL_64, f: INTEGER_32)
Output r with only f digit for the fractionnal part.
put_real_scientific (r: REAL_64, f: INTEGER_32)
Output r using the scientific notation with only f digit for the fractionnal part.
put_number (number: NUMBER)
Output the number.
put_boolean (b: BOOLEAN)
Output b to current output device according to the Eiffel format.
put_pointer (p: POINTER)
Output a viewable version of p.
put_new_line
Output a newline character.
put_spaces (nb: INTEGER_32)
Output nb spaces character.
append_file (file_name: STRING)