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
14namespace ksf::evt
15{
19 class ksEventInterface : public std::enable_shared_from_this<ksEventInterface>
20 {
21 friend class ksEventHandle;
22
23 protected:
28 virtual void unbind(std::size_t callbackUID) = 0;
29 };
30}
Implements event handle, used to automatically unbind callback on destruction.
Definition ksEventHandle.h:26
Implements interface for multicasting events.
Definition ksEventInterface.h:20
virtual void unbind(std::size_t callbackUID)=0
Unbinds callback from the list.