xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | List of all members
xtd::diagnostics::process::output_data_received_event Class Reference

#include <process.h>

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.

Inherits xtd::diagnostics::data_received_event_handler.

Public Member Functions

bool is_empty () const noexcept
 Gets a value indicate if the event is empty.
 
xtd::diagnostics::data_received_event_handleroperator+= (const typename xtd::diagnostics::data_received_event_handler::function_t &function) noexcept
 Adds a function to the event.
 
xtd::diagnostics::data_received_event_handleroperator+= (const xtd::diagnostics::data_received_event_handler &handler) noexcept
 Adds an handler 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 typename xtd::diagnostics::data_received_event_handler::function_t &function) noexcept
 Removes 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.
 
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 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+=() [2/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+=() [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 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-=() [2/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-=() [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: