xtd 0.2.0
iobservable.h
Go to the documentation of this file.
1 #pragma once
5 #include "interface.h"
6 #include "iobserver.h"
7 #include "object.h"
8 
10 namespace 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: iobserver.h:154
Provides a mechanism for receiving push-based notifications.
Definition: iobservable.h:155
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::interface interface.
virtual void unsubscribe(iobserver< type_t > &observer) noexcept=0
Notifies the provider that an observer no longer wants to receive notifications.
#define interface_
This keyword is use to represent an interface.
Definition: interface.h:54
Contains xtd::object class.
Contains xtd::iobserver interface.
virtual void subscribe(iobserver< type_t > &observer) noexcept=0
Notifies the provider that an observer is to receive notifications.