fpmas 1.6
callback.h
Go to the documentation of this file.
1#ifndef FPMAS_CALLBACK_API_H
2#define FPMAS_CALLBACK_API_H
3
8namespace fpmas { namespace api { namespace utils {
9
15 template<typename... Args>
16 class Callback {
17 public:
23 virtual void call(Args... args) = 0;
24 virtual ~Callback() {}
25 };
26
32 template<typename Event>
33 struct EventCallback : public Callback<const Event&> {
37 typedef Event EventType;
38 };
39}}}
40#endif
Definition: callback.h:16
virtual void call(Args... args)=0
Definition: fpmas.cpp:3
Definition: callback.h:33
Event EventType
Definition: callback.h:37