note description: "A I/O handler manager. % %This class should be used to monitor I/O mechanism without interfering % %with events mechanism (like scanning a UNIX pipe or socket)" legal: "See notice at end of class."; status: "See notice at end of class."; date: "$Date$"; revision: "$Revision$" deferred class IO_HANDLER_I inherit G_ANY_I export {NONE} all end; feature -- Status report is_call_back_set: BOOLEAN -- Is a call back already set ? deferred end feature -- Status setting set_error_call_back (a_file: IO_MEDIUM; a_command: COMMAND; an_argument: ANY) -- Set `a_command' with `argument' to execute when an operation -- on `a_file' had raised an I/O error. --| the behave of this routine should be examined when other --| error handlers are used (such as Eiffel exception mechanism). require no_call_back_already_set: not is_call_back_set; not_a_command_void: a_command /= Void deferred ensure is_call_back_set end; set_no_call_back -- Remove any call-back already set. require a_call_back_must_be_set: is_call_back_set deferred ensure not is_call_back_set end; set_read_call_back (a_file: IO_MEDIUM; a_command: COMMAND; an_argument: ANY) -- Set `a_command' with `argument' to execute when `a_file' has -- data available. require no_call_back_already_set: not is_call_back_set; not_a_command_void: a_command /= Void deferred ensure is_call_back_set end; set_write_call_back (a_file: IO_MEDIUM; a_command: COMMAND; an_argument: ANY) -- Set `a_command' with `argument' to execute when `a_file' is -- available for writing. require no_call_back_already_set: not is_call_back_set; not_a_command_void: a_command /= Void deferred ensure is_call_back_set end; destroy deferred end; note 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 ]" end -- IO_HANDLER_I