xtd 0.2.0
Loading...
Searching...
No Matches
xtd::diagnostics::process::output_data_received_event Class Reference
Inheritance diagram for xtd::diagnostics::process::output_data_received_event:

Definition

Represents a process output data received event.

Library
xtd.core
Remarks
Used by xtd::diagnostics::process::exited, xtd::diagnostics::process::error_data_received and xtd::diagnostics::process::output_data_received events.

Public Methods

bool is_empty () const noexcept
 Gets a value indicate if the event is empty.
 

Operators

xtd::diagnostics::data_received_event_handleroperator+= (const xtd::diagnostics::data_received_event_handler &handler) noexcept
 Adds an handler to the event.
 
xtd::diagnostics::data_received_event_handleroperator+= (const typename xtd::diagnostics::data_received_event_handler::function_t &function) noexcept
 Adds a function to the event.
 
template<typename fn_t >
xtd::diagnostics::data_received_event_handleroperator+= (fn_t function) noexcept
 Adds a function to the event.
 
xtd::diagnostics::data_received_event_handleroperator-= (const xtd::diagnostics::data_received_event_handler &handler) noexcept
 Removes an handler to the event.
 
xtd::diagnostics::data_received_event_handleroperator-= (const typename xtd::diagnostics::data_received_event_handler::function_t &function) noexcept
 Removes a function to the event.
 
template<typename fn_t >
xtd::diagnostics::data_received_event_handleroperator-= (fn_t function) noexcept
 Removes a function to the event.
 

Member Function Documentation

◆ is_empty()

bool xtd::diagnostics::process::output_data_received_event::is_empty ( ) const
noexcept

Gets a value indicate if the event is empty.

Returns
true if event does not contains functions; otherwise false.

◆ operator+=() [1/3]

xtd::diagnostics::data_received_event_handler & xtd::diagnostics::process::output_data_received_event::operator+= ( const xtd::diagnostics::data_received_event_handler handler)
noexcept

Adds an handler to the event.

Parameters
handlerHandler to add.
Returns
The current event instance.

◆ operator+=() [2/3]

xtd::diagnostics::data_received_event_handler & xtd::diagnostics::process::output_data_received_event::operator+= ( const typename xtd::diagnostics::data_received_event_handler::function_t &  function)
noexcept

Adds a function to the event.

Parameters
functionFunction to add.
Returns
The current event instance.

◆ operator+=() [3/3]

template<typename fn_t >
xtd::diagnostics::data_received_event_handler & xtd::diagnostics::process::output_data_received_event::operator+= ( fn_t  function)
inlinenoexcept

Adds a function to the event.

Parameters
functionFunction to add.
Returns
The current event instance.

◆ operator-=() [1/3]

xtd::diagnostics::data_received_event_handler & xtd::diagnostics::process::output_data_received_event::operator-= ( const xtd::diagnostics::data_received_event_handler handler)
noexcept

Removes an handler to the event.

Parameters
handlerHandler to remove.
Returns
The current event instance.

◆ operator-=() [2/3]

xtd::diagnostics::data_received_event_handler & xtd::diagnostics::process::output_data_received_event::operator-= ( const typename xtd::diagnostics::data_received_event_handler::function_t &  function)
noexcept

Removes a function to the event.

Parameters
functionFunction to remove.
Returns
The current event instance.

◆ operator-=() [3/3]

template<typename fn_t >
xtd::diagnostics::data_received_event_handler & xtd::diagnostics::process::output_data_received_event::operator-= ( fn_t  function)
inlinenoexcept

Removes a function to the event.

Parameters
functionFunction to remove.
Returns
The current event instance.

The documentation for this class was generated from the following file: