xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
iobserver.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
interface.hpp
"
6
#include <exception>
7
9
namespace
xtd
{
10
template
<
typename
type_t>
154
class
iobserver
interface_
{
155
public
:
157
168
virtual
auto
on_completed
() noexcept ->
void
= 0;
169
179
virtual auto
on_error
(const std::
exception
& error) noexcept ->
void
= 0;
180
190
virtual auto
on_next
(const type_t& value) noexcept ->
void
= 0;
192
};
193
}
xtd::exception
Defines the base class for predefined exceptions in the xtd namespace.
Definition
exception.hpp:29
xtd::iobserver
Provides a mechanism for receiving push-based notifications.
Definition
iobserver.hpp:154
xtd::iobserver::on_error
virtual auto on_error(const std::exception &error) noexcept -> void=0
Notifies the observer that the provider has experienced an error condition.
xtd::iobserver::on_next
virtual auto on_next(const type_t &value) noexcept -> void=0
Provides the observer with new data.
xtd::iobserver::on_completed
virtual auto on_completed() noexcept -> void=0
Notifies the observer that the provider has finished sending push-based notifications.
interface_
#define interface_
This keyword is use to represent an interface.
Definition
interface.hpp:58
interface.hpp
Contains xtd::interface interface.
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
Generated on
for xtd by
Gammasoft
. All rights reserved.