+
Point of view
All features
expanded class PROCESS_FACTORY
Summary
This class allows one to spawn an external process and make it execute some file.
The standard streams of the process are available: input, output and error.
Note: This class is in a beta stage. POSIX and Windows versions are available but there may be resource leaks or other bugs left.
Direct parents
Insert list: ANY
Overview
Creation features
{ANY}
Features
{ANY}
{ANY}
{ANY}
{ANY}
{}
plugin features
{}
execute (program: STRING, arguments: TRAVERSABLE[STRING]): PROCESS
effective function
{ANY}
Execute the given program (how the program is discovered is OS-dependent), passing to it the arguments.
The environment is cleared if keep_environment is False.
require
  • program /= Void
execute_command_line (command_line: STRING): PROCESS
effective function
{ANY}
Execute the given program (how the program is discovered is OS-dependent), passing to it the arguments.
The environment is cleared if keep_environment is False.
require
  • command_line /= Void
  • not command_line.is_empty
create_process: PROCESS
effective function
{ANY}
keep_environment: BOOLEAN
writable attribute
{ANY}
set_keep_environment (keep_environment_: BOOLEAN)
effective procedure
{ANY}
ensure
writable attribute
{ANY}
create_group: PROCESS_GROUP
effective function
{ANY}
default_group: PROCESS_GROUP
once function
{ANY}
set_group (a_group: PROCESS_GROUP)
effective procedure
{ANY}
require
  • a_group /= Void
ensure
direct_input: BOOLEAN
writable attribute
{ANY}
Is the program's input stream read directly from the standard input stream rather than from input?
set_direct_input (direct_input_: BOOLEAN)
effective procedure
{ANY}
ensure
direct_output: BOOLEAN
writable attribute
{ANY}
Is the program's output stream sent directly to the standard output stream rather than to output?
set_direct_output (direct_output_: BOOLEAN)
effective procedure
{ANY}
ensure
direct_error: BOOLEAN
writable attribute
{ANY}
Is the program's error stream sent directly to the standard error stream rather than to error?
set_direct_error (direct_error_: BOOLEAN)
effective procedure
{ANY}
ensure
default_create
effective procedure
{}
Default creation method.
It is used when no creation method is specified if allowed. Note it may be renamed.
basic_exec_system: INTEGER_32
{}
basic_exec_system_posix: INTEGER_32
{}
basic_exec_system_win32: INTEGER_32
{}
basic_exec_system_none: INTEGER_32
{}