xtd 0.2.0
iobserver.h
Go to the documentation of this file.
1 #pragma once
5 #include "interface.h"
6 #include <exception>
7 
9 namespace 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 }
Provides a mechanism for receiving push-based notifications.
Definition: iobserver.h:154
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
virtual void on_next(const type_t &value) noexcept=0
Provides the observer with new data.
Contains xtd::interface interface.
#define interface_
This keyword is use to represent an interface.
Definition: interface.h:54
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.