BMA Server Framework
/home/barant/Development/BMA/server_core/ServerCore/BMAEvent.h
1
//#ifndef __BMAEvent_h__
2
//#define __BMAEvent_h__
3
//
4
//#include "includes"
5
//
6
//template <class ...Args> class BMAEvent {
7
//
8
// public:
9
//
10
// BMAEvent() {
11
// printf("constructing...%p", this);
12
// }
13
//
14
// void addHandler(function<void (Args...)> handler) {
15
// printf("add handler to listeners. %p\n", this);
16
// handlers.push_back(handler);
17
// }
18
//
19
// void sendEvent(Args... args) {
20
// printf("send event to listeners. %p\n", this);
21
// for(auto& f : handlers) {
22
// f(args...);
23
// printf(" --\n");
24
// }
25
// }
26
//
27
// private:
28
// vector<function<void (Args...)>> handlers;
29
//
30
//};
31
//
32
//#endif
33
//
34
//
35
//
36
37
38
Generated by
1.8.13