Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Text Flat Contracts Flat contracts Go to:
indexing description: "Files viewed as persistent sequences of ASCII characters" status: "See notice at end of class" date: "$Date: 2001-11-16 20:32:23 +0000 (Fri, 16 Nov 2001) $" revision: "$Revision: 51435 $" class PLAIN_TEXT_FILE inherit FILE rename index as position redefine is_plain_text end create make, make_open_read, make_open_write, make_open_append, make_open_read_write, make_create_read_write, make_open_read_append feature -- Status report is_plain_text: BOOLEAN is -- Is file reserved for text (character sequences)? (Yes) do Result := True end Support_storable: BOOLEAN is False -- Can medium be used to store an Eiffel structure? feature -- Output put_integer (i: INTEGER) is -- Write ASCII value of i at current position. -- Was declared in PLAIN_TEXT_FILE as synonym of putint. do file_pi (file_pointer, i) end putint (i: INTEGER) is -- Write ASCII value of i at current position. -- Was declared in PLAIN_TEXT_FILE as synonym of put_integer. do file_pi (file_pointer, i) end put_boolean (b: BOOLEAN) is -- Write ASCII value of b at current position. -- Was declared in PLAIN_TEXT_FILE as synonym of putbool. local ext_bool_str: ANY do if b then ext_bool_str := true_string.to_c file_ps (file_pointer, $ext_bool_str, true_string.count) else ext_bool_str := false_string.to_c file_ps (file_pointer, $ext_bool_str, false_string.count) end end putbool (b: BOOLEAN) is -- Write ASCII value of b at current position. -- Was declared in PLAIN_TEXT_FILE as synonym of put_boolean. local ext_bool_str: ANY do if b then ext_bool_str := true_string.to_c file_ps (file_pointer, $ext_bool_str, true_string.count) else ext_bool_str := false_string.to_c file_ps (file_pointer, $ext_bool_str, false_string.count) end end put_real (r: REAL) is -- Write ASCII value of r at current position. -- Was declared in PLAIN_TEXT_FILE as synonym of putreal. do file_pr (file_pointer, r) end putreal (r: REAL) is -- Write ASCII value of r at current position. -- Was declared in PLAIN_TEXT_FILE as synonym of put_real. do file_pr (file_pointer, r) end put_double (d: DOUBLE) is -- Write ASCII value d at current position. -- Was declared in PLAIN_TEXT_FILE as synonym of putdouble. do file_pd (file_pointer, d) end putdouble (d: DOUBLE) is -- Write ASCII value d at current position. -- Was declared in PLAIN_TEXT_FILE as synonym of put_double. do file_pd (file_pointer, d) end feature -- Input read_integer is -- Read the ASCII representation of a new integer -- from file. Make result available in last_integer. -- Was declared in PLAIN_TEXT_FILE as synonym of readint. do last_integer := file_gi (file_pointer) end readint is -- Read the ASCII representation of a new integer -- from file. Make result available in last_integer. -- Was declared in PLAIN_TEXT_FILE as synonym of read_integer. do last_integer := file_gi (file_pointer) end read_real is -- Read the ASCII representation of a new real -- from file. Make result available in last_real. -- Was declared in PLAIN_TEXT_FILE as synonym of readreal. do last_real := file_gr (file_pointer) end readreal is -- Read the ASCII representation of a new real -- from file. Make result available in last_real. -- Was declared in PLAIN_TEXT_FILE as synonym of read_real. do last_real := file_gr (file_pointer) end read_double is -- Read the ASCII representation of a new double -- from file. Make result available in last_double. -- Was declared in PLAIN_TEXT_FILE as synonym of readdouble. do last_double := file_gd (file_pointer) end readdouble is -- Read the ASCII representation of a new double -- from file. Make result available in last_double. -- Was declared in PLAIN_TEXT_FILE as synonym of read_double. do last_double := file_gd (file_pointer) end feature {NONE} -- Implementation file_gi (file: POINTER): INTEGER is -- Get an integer from file external "C (FILE *): EIF_INTEGER | %"eif_file.h%"" end file_gr (file: POINTER): REAL is -- Read a real from file external "C (FILE *): EIF_REAL | %"eif_file.h%"" end file_gd (file: POINTER): DOUBLE is -- Read a double from file external "C (FILE *): EIF_DOUBLE | %"eif_file.h%"" end file_pi (file: POINTER; n: INTEGER) is -- Put n to end of file. external "C (FILE *, EIF_INTEGER) | %"eif_file.h%"" end file_pr (file: POINTER; r: REAL) is -- Put r to end of file. external "C (FILE *, EIF_REAL) | %"eif_file.h%"" end file_pd (file: POINTER; d: DOUBLE) is -- Put d to end of file. external "C (FILE *, EIF_DOUBLE) | %"eif_file.h%"" end invariant plain_text: is_plain_text indexing library: "[ EiffelBase: Library of reusable components for Eiffel. ]" status: "[ Copyright 1986-2001 Interactive Software Engineering (ISE). For ISE customers the original versions are an ISE product covered by the ISE Eiffel license and support agreements. ]" license: "[ EiffelBase may now be used by anyone as FREE SOFTWARE to develop any product, public-domain or commercial, without payment to ISE, under the terms of the ISE Free Eiffel Library License (IFELL) at http://eiffel.com/products/base/license.html. ]" source: "[ Interactive Software Engineering Inc. ISE Building 360 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Electronic mail <info@eiffel.com> Customer support http://support.eiffel.com ]" info: "[ For latest info see award-winning pages: http://eiffel.com ]" end -- class PLAIN_TEXT_FILE
Classes Clusters Cluster hierarchy Chart Relations Text Flat Contracts Flat contracts Go to:

-- Generated by ISE Eiffel --
For more details: www.eiffel.com