MEL
Microthread & Execution library
CallbackSubscriptor.h
1 
2 #pragma once
3 /*
4  * SPDX-FileCopyrightText: 2005,2022 Daniel Barrientos
5  * <danivillamanin@gmail.com>
6  *
7  * SPDX-License-Identifier: MIT
8  */
9 #include <algorithm>
10 #include <core/Callback.h>
11 using std::for_each;
12 #include <mpl/deleter.h>
13 using mel::mpl::del_ptr;
14 #include <list>
15 using std::list;
16 #include <mutex>
17 namespace mel
18 {
19  namespace core
20  {
21  enum SubscriptionEmplacement
22  {
23  SE_BACK,
24  SE_FRONT
25  };
31  enum class ECallbackResult : uint8_t
32  {
33  NO_UNSUBSCRIBE,
34  UNSUBSCRIBE
35  };
37  {
38  };
40  {
41  };
42  } // namespace core
43 } // namespace mel
44 #include <deque>
45 #include <functional>
46 #include <memory>
47 #include <mpl/IsSame.h>
48 #include <text/logger.h>
49 #undef INCLUDE_PATH
50 #define INCLUDE_PATH <core/CallbackSubscriptor_Impl.h>
51 #include <mpl/VarArgs.h>
The only sense of this file is as a wrapper to spdlog in order t avoid its use if no installed in any...
ECallbackResult
Type resturned by callbacks subscribed to CallbackSubscriptors.
Definition: CallbackSubscriptor.h:32
void del_ptr(T *object)
generic functor to delete pointers
Definition: deleter.h:11
Definition: Callback_Impl.h:11
Definition: CallbackSubscriptor.h:37
Definition: CallbackSubscriptor.h:40