GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
STANDARD_STREAMS
+
Point of view
INTERNALS_HANDLER
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
All features
class STANDARD_STREAMS
Summary
top
Thanks to this
standard_streams
singleton object, you can redirect
std_input_stream
,
std_output_stream
as well as
std_error_stream
.
See also the examples from our tutorial/io directory.
Direct parents
Insert list:
SINGLETON
Overview
top
Creation features
make
Exported features
std_input
:
INPUT_STREAM
std_output
:
OUTPUT_STREAM
std_error
:
OUTPUT_STREAM
set_std_input
(a_std_input:
INPUT_STREAM
)
restore_std_input
set_std_output
(a_std_output:
OUTPUT_STREAM
)
restore_std_output
set_std_error
(a_std_error:
OUTPUT_STREAM
)
restore_std_error
is_equal
(other: STANDARD_STREAMS):
BOOLEAN
Is
other
attached to an object considered equal to current object?
std_input
:
INPUT_STREAM
writable attribute
top
std_output
:
OUTPUT_STREAM
writable attribute
top
std_error
:
OUTPUT_STREAM
writable attribute
top
set_std_input
(a_std_input:
INPUT_STREAM
)
effective procedure
top
require
a_std_input.is_connected
restore_std_input
effective procedure
top
set_std_output
(a_std_output:
OUTPUT_STREAM
)
effective procedure
top
require
a_std_output.is_connected
restore_std_output
effective procedure
top
set_std_error
(a_std_error:
OUTPUT_STREAM
)
effective procedure
top
require
a_std_error.is_connected
restore_std_error
effective procedure
top
is_equal
(other: STANDARD_STREAMS):
BOOLEAN
effective function
top
Is
other
attached to an object considered equal to current object?
require
other /= Void
ensure
commutative:
generating_type = other.generating_type implies Result = other.is_equal(Current)