Chi-Tech
EventSubscriber.h
Go to the documentation of this file.
1#ifndef CHITECH_EVENTSUBSCRIBER_H
2#define CHITECH_EVENTSUBSCRIBER_H
3
4namespace chi
5{
6
7class Event;
8
10{
11public:
12 EventSubscriber() = default;
13
14 /**A method called by publishers to inform the object of events, only if
15 * the object subscribed to the publisher.*/
16 virtual void ReceiveEventUpdate(const Event& event);
17
18 virtual ~EventSubscriber() = default;
19};
20
21}
22
23#endif // CHITECH_EVENTSUBSCRIBER_H
virtual ~EventSubscriber()=default
EventSubscriber()=default
virtual void ReceiveEventUpdate(const Event &event)