xtd - Reference Guide 0.2.0
xtd::diagnostics::process::error_data_received_event Class Reference

#include <process.h>

Definition

Represents a process error 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.

Methods

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

Operators

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

Member Function Documentation

◆ is_empty()

bool xtd::diagnostics::process::error_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::error_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::error_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::error_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::error_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::error_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::error_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: