xtd 0.2.0
Loading...
Searching...
No Matches
iobservable.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "interface.hpp"
6#include "iobserver.hpp"
7#include "object.hpp"
8
10namespace xtd {
11 template<typename type_t>
156 public:
158
162 virtual void subscribe(iobserver<type_t>& observer) noexcept = 0;
163
166 virtual void unsubscribe(iobserver<type_t>& observer) noexcept = 0;
168 };
169}
Provides a mechanism for receiving push-based notifications.
Definition iobservable.hpp:155
virtual void subscribe(iobserver< type_t > &observer) noexcept=0
Notifies the provider that an observer is to receive notifications.
virtual void unsubscribe(iobserver< type_t > &observer) noexcept=0
Notifies the provider that an observer no longer wants to receive notifications.
Provides a mechanism for receiving push-based notifications.
Definition iobserver.hpp:154
#define interface_
This keyword is use to represent an interface.
Definition interface.hpp:58
Contains xtd::interface interface.
Contains xtd::iobserver interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::object class.