xtd 0.2.0
Loading...
Searching...
No Matches
iobservable.h
Go to the documentation of this file.
1
4#pragma once
5#include "interface.h"
6#include "iobserver.h"
7#include "object.h"
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.h: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.h:154
#define interface_
This keyword is use to represent an interface.
Definition interface.h: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.h:10
Contains xtd::object class.