indexing
description: "[
Launch processes and redirect output:
- Use `spawn' to launch a process asynchronously.
Note: you cannot retrieve the ouput from a
process that was spawned
- Use `launch' to launch a process synchronously
and process its output if needed.
]"
status: "See notice at end of class"
date: "$Date$"
revision: "$Revision$"
class interface
WEL_PROCESS_LAUNCHER
feature
last_launch_successful: BOOLEAN
launch
last_process_result: INTEGER
feature
launch (a_command_line, a_working_directory: STRING; a_output_handler: ROUTINE [ANY, TUPLE [STRING]])
a_command_linea_working_directory
a_output_handler
require
non_void_command_line: a_command_line /= void
valid_command_line: not a_command_line.is_empty
non_void_working_directory: a_working_directory /= void
launch_and_refresh (a_command_line, a_working_directory: STRING; a_refresh_handler: ROUTINE [ANY, TUPLE])
a_command_linea_working_directory
a_refresh_handler
require
non_void_command_line: a_command_line /= void
valid_command_line: not a_command_line.is_empty
non_void_working_directory: a_working_directory /= void
spawn (a_command_line, a_working_directory: STRING)
a_command_linea_working_directory
require
non_void_command_line: a_command_line /= void
valid_command_line: not a_command_line.is_empty
non_void_working_directory: a_working_directory /= void
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
end -- WEL_PROCESS_LAUNCHER