5#include "../core_export.h"
6#include "../date_time.h"
8#include "../event_handler.h"
11#include "../optional.h"
19struct __init_process_message_box_message__;
25 namespace diagnostics {
60 void set_data(process::data* data) {data_ = data;}
86 template<typename fn_t>
88 error_data_received_callback() += (function);
89 return xtd::diagnostics::data_received_event_handler::operator +=(function);
105 template<
typename fn_t>
107 error_data_received_callback() -= (function);
108 return data_received_event_handler::operator -=(function);
114 process::data* data_ =
nullptr;
124 void set_data(process::data* data) {data_ = data;}
150 template<typename fn_t>
152 exit_callback() += (function);
153 return xtd::event_handler::operator +=(function);
169 template<
typename fn_t>
171 exit_callback() -= (function);
172 return xtd::event_handler::operator -=(function);
178 process::data* data_ =
nullptr;
188 void set_data(process::data* data) {data_ = data;}
214 template<typename fn_t>
216 output_data_received_callback() += (function);
217 return xtd::diagnostics::data_received_event_handler::operator +=(function);
233 template<
typename fn_t>
235 output_data_received_callback() -= (function);
236 return xtd::diagnostics::data_received_event_handler::operator -=(function);
242 process::data* data_ =
nullptr;
291 bool enable_raising_events() const;
336 bool has_exited() const;
352 string machine_name() const;
392 string process_name() const;
500 std::istream& standard_error();
564 std::ostream& standard_input();
686 std::istream& standard_output();
799 static
process start(const
string& file_name);
811 static
process start(const
string& file_name, const
string& arguments);
844 virtual
void on_exited();
849 friend __init_process_message_box_message__;
850 inline static
xtd::delegate<
void(const
string&)> message_box_message_;
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.h:85
Represents a process error data received event.
Definition process.h:58
bool is_empty() const noexcept
Gets a value indicate if the event is empty.
Represents a process exit event.
Definition process.h:122
bool is_empty() const noexcept
Gets a value indicate if the event is empty.
Represents a process output data received event.
Definition process.h:186
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:39
Provides access to local and remote processes and enables you to start and stop local system processe...
Definition process.h:49
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
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:27
#define core_export_
Define shared library export.
Definition core_export.h:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.h:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
process_priority_class
Indicates the priority that the system associates with a process. This value, together with the prior...
Definition process_priority_class.h:26
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.