xtd - Reference Guide 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 {
25  public:
28 
30  data_received_event_args() = default;
31 
34  explicit data_received_event_args(const xtd::ustring& data) : data_(data) {}
35 
38  data_received_event_args& operator=(const data_received_event_args&) = default;
40 
42 
45 
48  const xtd::ustring& data() const {return data_;}
49 
51 
52  private:
53  xtd::ustring data_;
54  };
55  }
56 }
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:24
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:50
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:34
const xtd::ustring & data() const
Gets the line of characters that was written to a redirected Process output stream.
Definition: data_received_event_args.h:48