xtd 0.2.0
data_received_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include "../event_args.h"
6 #include "../ustring.h"
7 
9 namespace xtd {
11  namespace diagnostics {
27  public:
30 
32  data_received_event_args() = default;
33 
36  explicit data_received_event_args(const xtd::ustring& data) : data_(data) {}
37 
40  data_received_event_args& operator =(const data_received_event_args&) = default;
42 
44 
47 
50  const xtd::ustring& data() const noexcept {return data_;}
51 
53 
54  private:
55  xtd::ustring data_;
56  };
57  }
58 }
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
data_received_event_args()=default
Initializes a new instance of the data_received_event_args class.
Provides data for the xtd::diagnostics::process::output_data_received and xtd::diagnostics::process::...
Definition: data_received_event_args.h:26
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
data_received_event_args(const xtd::ustring &data)
Initializes a new instance of the data_received_event_args class.
Definition: data_received_event_args.h:36
const xtd::ustring & data() const noexcept
Gets the line of characters that was written to a redirected Process output stream.
Definition: data_received_event_args.h:50