xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
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
10
namespace
xtd
{
11
template
<
typename
type_t>
155
class
iobservable
interface_
{
156
public
:
158
162
virtual
auto
subscribe
(
iobserver<type_t>
& observer)
noexcept
->
void
= 0;
163
166
virtual
auto
unsubscribe
(
iobserver<type_t>
& observer)
noexcept
->
void
= 0;
168
};
169
}
xtd::iobservable
Provides a mechanism for receiving push-based notifications.
Definition
iobservable.hpp:155
xtd::iobservable::subscribe
virtual auto subscribe(iobserver< type_t > &observer) noexcept -> void=0
Notifies the provider that an observer is to receive notifications.
xtd::iobservable::unsubscribe
virtual auto unsubscribe(iobserver< type_t > &observer) noexcept -> void=0
Notifies the provider that an observer no longer wants to receive notifications.
xtd::iobserver
Provides a mechanism for receiving push-based notifications.
Definition
iobserver.hpp:154
interface_
#define interface_
This keyword is use to represent an interface.
Definition
interface.hpp:58
interface.hpp
Contains xtd::interface interface.
iobserver.hpp
Contains xtd::iobserver interface.
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
object.hpp
Contains xtd::object class.
Generated on
for xtd by
Gammasoft
. All rights reserved.