Doxygen with github
Loading...
Searching...
No Matches
ksEventInterface.h
1/*
2 * Copyright (c) 2021-2023, Krzysztof Strehlau
3 *
4 * This file is a part of the ksIotFramework library.
5 * All licensing information can be found inside LICENSE.md file.
6 *
7 * https://github.com/cziter15/ksIotFrameworkLib/blob/master/LICENSE
8 */
9
10#pragma once
11
12#include <memory>
13#include <cstddef>
14
15namespace ksf::evt
16{
20 class ksEventInterface : public std::enable_shared_from_this<ksEventInterface>
21 {
22 friend class ksEventHandle;
23
24 protected:
29 virtual void unbind(std::size_t callbackUID) = 0;
30
31 public:
32 virtual ~ksEventInterface() = default;
33 };
34}
Implements an event handle that automatically unbinds callbacks on destruction.
Definition ksEventHandle.h:26
Implements interface for multicasting events.
Definition ksEventInterface.h:21
virtual void unbind(std::size_t callbackUID)=0
Unbinds callback from the list.