Chi-Tech
EventSubscriber.h
Go to the documentation of this file.
1
#ifndef CHITECH_EVENTSUBSCRIBER_H
2
#define CHITECH_EVENTSUBSCRIBER_H
3
4
namespace
chi
5
{
6
7
class
Event;
8
9
class
EventSubscriber
10
{
11
public
:
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
chi::Event
Definition:
Event.h:12
chi::EventSubscriber
Definition:
EventSubscriber.h:10
chi::EventSubscriber::~EventSubscriber
virtual ~EventSubscriber()=default
chi::EventSubscriber::EventSubscriber
EventSubscriber()=default
chi::EventSubscriber::ReceiveEventUpdate
virtual void ReceiveEventUpdate(const Event &event)
Definition:
EventSubscriber.cc:6
chi
Definition:
chi_runtime.h:53
framework
event_system
EventSubscriber.h
Generated by
1.9.3