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