5#include "../core_export.h"
6#include "../date_time.h"
8#include "../event_handler.h"
10#include "../ustring.h"
11#include "../optional.h"
19struct __init_process_message_box_message__;
25 namespace diagnostics {
58 void set_data(process::data* data) {data_ = data;}
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;}
148 template<typename fn_t>
150 exit_callback() += (function);
151 return xtd::event_handler::operator +=(function);
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;}
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;
289 bool enable_raising_events() const;
334 bool has_exited() const;
500 std::istream& standard_error();
565 std::ostream& standard_input();
690 std::istream& standard_output();
848 virtual
void on_exited();
852 std::shared_ptr<data> data_;
853 friend __init_process_message_box_message__;
854 inline static
xtd::delegate<
void(const
ustring&)> message_box_message_;
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.h:79
Represents a process error data received event.
Definition process.h:56
bool is_empty() const noexcept
Gets a value indicate if the event is empty.
Represents a process exit event.
Definition process.h:120
bool is_empty() const noexcept
Gets a value indicate if the event is empty.
Represents a process output data received event.
Definition process.h:184
bool is_empty() const noexcept
Gets a value indicate if the event is empty.
Specifies a set of values that are used when you start a process.
Definition process_start_info.h:37
Provides access to local and remote processes and enables you to start and stop local system processe...
Definition process.h:47
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::diagnostics::data_received_event_handler event handler.
generic_event_handler<> event_handler
Represents the method that will handle an event that has no event data.
Definition event_handler.h:32
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
#define core_export_
Define shared library export.
Definition core_export.h:13
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
intmax_t intptr
Represent a pointer or a handle.
Definition types.h:153
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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::diagnostics::process_priority_class enum class.
Contains xtd::diagnostics::process_start_info class.