elogger API
Overview Classes Cluster Class Index          Top Features

ise.base.kernel

Class STD_FILES


Features

Invariants

indexing

description

Commonly used input and output mechanisms.
This class may be used as either ancestor or supplier
by classes needing its facilities.

legal

See notice at end of class.

status

See notice at end of class.

class STD_FILES

feature -- Access

default_output: PLAIN_TEXT_FILE

-- Default output

error: PLAIN_TEXT_FILE

-- Standard error file

ensure

error_not_void: Result /= Void

input: PLAIN_TEXT_FILE

-- Standard input file

ensure

input_not_void: Result /= Void

output: PLAIN_TEXT_FILE

-- Standard output file

ensure

output_not_void: Result /= Void

standard_default: PLAIN_TEXT_FILE

-- Return the default_output or output
-- if default_output is Void.
--| Useful if a class inherits from STD_FILES and
--| and a putint is applied without standard setting.

feature -- Status report

last_character: CHARACTER

-- Last character read by read_character

last_double: DOUBLE

-- Last double read by read_double

last_integer: INTEGER

-- Last integer read by read_integer

last_integer_16: INTEGER_16

-- Last 16-bit integer read by read_integer_16

last_integer_32: INTEGER

-- Last integer read by read_integer

last_integer_64: INTEGER_64

-- Last 8-bit integer read by read_integer_64

last_integer_8: INTEGER_8

-- Last 8-bit integer read by read_integer_8

last_natural: NATURAL_32

-- Last 32-bit natural read by read_natural_32

last_natural_16: NATURAL_16

-- Last 16-bit natural read by read_natural_16

last_natural_32: NATURAL_32

-- Last 32-bit natural read by read_natural_32

last_natural_64: NATURAL_64

-- Last 64-bit natural read by read_natural_64

last_natural_8: NATURAL_8

-- Last 8-bit natural read by read_natural_8

last_real: REAL

-- Last real read by read_real

last_string: STRING

-- Last string read by read_line,
-- read_stream, or read_word

lastchar: CHARACTER

-- Last character read by read_character

lastdouble: DOUBLE

-- Last double read by read_double

lastint: INTEGER

-- Last integer read by read_integer

lastreal: REAL

-- Last real read by read_real

laststring: STRING

-- Last string read by read_line,
-- read_stream, or read_word

feature -- Element change

new_line

-- Write line feed at end of default output.

put_boolean (b: BOOLEAN)

-- Write b at end of default output.

put_character (c: CHARACTER)

-- Write c at end of default output.

put_double (d: DOUBLE)

-- Write d at end of default output.

put_integer (i: INTEGER)

-- Write i at end of default output.

put_integer_16 (i: INTEGER_16)

-- Write i at end of default output.

put_integer_32 (i: INTEGER)

-- Write i at end of default output.

put_integer_64 (i: INTEGER_64)

-- Write i at end of default output.

put_integer_8 (i: INTEGER_8)

-- Write i at end of default output.

put_natural (i: NATURAL_32)

-- Write i at end of default output.

put_natural_16 (i: NATURAL_16)

-- Write i at end of default output.

put_natural_32 (i: NATURAL_32)

-- Write i at end of default output.

put_natural_64 (i: NATURAL_64)

-- Write i at end of default output.

put_natural_8 (i: NATURAL_8)

-- Write i at end of default output.

put_new_line

-- Write line feed at end of default output.

put_real (r: REAL)

-- Write r at end of default output.

put_string (s: STRING)

-- Write s at end of default output.

require

string_not_void: s /= Void

putbool (b: BOOLEAN)

-- Write b at end of default output.

putchar (c: CHARACTER)

-- Write c at end of default output.

putdouble (d: DOUBLE)

-- Write d at end of default output.

putint (i: INTEGER)

-- Write i at end of default output.

putreal (r: REAL)

-- Write r at end of default output.

putstring (s: STRING)

-- Write s at end of default output.

require

string_not_void: s /= Void

set_error_default

-- Use standard error as default output.

set_file_default (f: PLAIN_TEXT_FILE)

-- Use f as default output.

require

valid_argument: f /= Void
file_open_write: f.is_open_write

set_output_default

-- Use standard output as default output.

feature -- Input

next_line

-- Move to next input line on standard input.

read_character

-- Read a new character from standard input.
-- It will not return until read operation is
-- terminated when enter key is pressed.
-- Make result available in last_character.
-- last_character will also contains platform
-- specific newline character.

read_double

-- Read a new double from standard input.
-- Make result available in last_double.

read_integer

-- Read a new 32-bit integer from standard input.
-- Make result available in last_integer.

read_integer_16

-- Read a new 16-bit integer from standard input.
-- Make result available in last_integer_16.

read_integer_32

-- Read a new 32-bit integer from standard input.
-- Make result available in last_integer.

read_integer_64

-- Read a new 64-bit integer from standard input.
-- Make result available in last_integer_64.

read_integer_8

-- Read a new 8-bit integer from standard input.
-- Make result available in last_integer_8.

read_line

-- Read a line from standard input.
-- Make result available in last_string.

ensure

last_string_not_void: last_string /= Void

read_natural

-- Read a new 32-bit natural from standard input.
-- Make result available in last_natural.

read_natural_16

-- Read a new 16-bit natural from standard input.
-- Make result available in last_natural_16.

read_natural_32

-- Read a new 32-bit natural from standard input.
-- Make result available in last_natural.

read_natural_64

-- Read a new 64-bit natural from standard input.
-- Make result available in last_natural_64.

read_natural_8

-- Read a new 8-bit natural from standard input.
-- Make result available in last_natural_8.

read_real

-- Read a new real from standard input.
-- Make result available in last_real.

read_stream (nb_char: INTEGER)

-- Read a string of at most nb_char bound characters
-- from standard input.
-- Make result available in last_string.

ensure

last_string_not_void: last_string /= Void

read_word

-- Read a new word from standard input.
-- Make result available in last_string.

ensure

last_string_not_void: last_string /= Void

readchar

-- Read a new character from standard input.
-- It will not return until read operation is
-- terminated when enter key is pressed.
-- Make result available in last_character.
-- last_character will also contains platform
-- specific newline character.

readdouble

-- Read a new double from standard input.
-- Make result available in last_double.

readint

-- Read a new 32-bit integer from standard input.
-- Make result available in last_integer.

readline

-- Read a line from standard input.
-- Make result available in last_string.

ensure

last_string_not_void: last_string /= Void

readreal

-- Read a new real from standard input.
-- Make result available in last_real.

readstream (nb_char: INTEGER)

-- Read a string of at most nb_char bound characters
-- from standard input.
-- Make result available in last_string.

ensure

last_string_not_void: last_string /= Void

readword

-- Read a new word from standard input.
-- Make result available in last_string.

ensure

last_string_not_void: last_string /= Void

to_next_line

-- Move to next input line on standard input.

invariant

-- From ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)

indexing

library

EiffelBase: Library of reusable components for Eiffel.

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


Documentation generated by edoc