5 #include "../core_export.h" 6 #include "../date_time.h" 8 #include "../event_handler.h" 10 #include "../ustring.h" 11 #include "../optional.h" 19 struct __init_process_message_box_message__;
25 namespace diagnostics {
58 void set_data(process::data* data) {data_ = data;}
65 bool is_empty()
const noexcept;
84 template<
typename fn_t>
86 error_data_received_callback() += (
function);
87 return xtd::diagnostics::data_received_event_handler::operator +=(
function);
103 template<
typename fn_t>
105 error_data_received_callback() -= (
function);
106 return data_received_event_handler::operator -=(
function);
112 process::data* data_ =
nullptr;
122 void set_data(process::data* data) {data_ = data;}
129 bool is_empty()
const noexcept;
143 xtd::event_handler& operator +=(
const typename xtd::event_handler::function_t&
function) noexcept;
148 template<
typename fn_t>
150 exit_callback() += (
function);
151 return xtd::event_handler::operator +=(
function);
162 xtd::event_handler& operator -=(
const typename xtd::event_handler::function_t&
function) noexcept;
167 template<
typename fn_t>
169 exit_callback() -= (
function);
170 return xtd::event_handler::operator -=(
function);
176 process::data* data_ =
nullptr;
186 void set_data(process::data* data) {data_ = data;}
193 bool is_empty()
const noexcept;
212 template<
typename fn_t>
214 output_data_received_callback() += (
function);
215 return xtd::diagnostics::data_received_event_handler::operator +=(
function);
231 template<
typename fn_t>
233 output_data_received_callback() -= (
function);
234 return xtd::diagnostics::data_received_event_handler::operator -=(
function);
240 process::data* data_ =
nullptr;
280 int32 base_priority()
const;
289 bool enable_raising_events()
const;
297 process& enable_raising_events(
bool value);
310 int32 exit_code()
const;
334 bool has_exited()
const;
500 std::istream& standard_error();
565 std::ostream& standard_input();
690 std::istream& standard_output();
843 virtual void on_exited();
847 std::shared_ptr<data> data_;
848 friend __init_process_message_box_message__;
849 inline static xtd::delegate<void(const ustring&)> message_box_message_;
Represents a process output data received event.
Definition: process.h:184
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
process_priority_class
Indicates the priority that the system associates with a process. This value, together with the prior...
Definition: process_priority_class.h:24
generic_event_handler<> event_handler
Represents the method that will handle an event that has no event data.
Definition: event_handler.h:32
Represents a process error data received event.
Definition: process.h:56
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
output_data_received_event output_data_received
Occurs each time an application writes a line to its redirected xtd::diagnostics::process::standard_o...
Definition: process.h:833
error_data_received_event error_data_received
Occurs when an application writes to its redirected xtd::diagnostics::process::standard_error stream...
Definition: process.h:820
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Contains xtd::diagnostics::process_start_info class.
Starting of a logical operation.
Provides access to local and remote processes and enables you to start and stop local system processe...
Definition: process.h:47
Represents an instant in time, typically expressed as a date and time of day.
Definition: date_time.h:78
xtd::delegate< void(xtd::object &sender, const xtd::diagnostics::data_received_event_args &e)> data_received_event_handler
Represents the method that will handle the xtd::diagnostics::process::output_data_received and xtd::d...
Definition: data_received_event_handler.h:25
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
Contains xtd::diagnostics::process_priority_class enum class.
Represents a process exit event.
Definition: process.h:120
Contains xtd::diagnostics::data_received_event_handler event handler.
exit_event exited
Occurs when a process exits.
Definition: process.h:827
Specifies a set of values that are used when you start a process.
Definition: process_start_info.h:37