yasmine
event.hpp
Go to the documentation of this file.
1 // //
3 // This file is part of the Seadex yasmine ecosystem (http://yasmine.seadex.de). //
4 // Copyright (C) 2016-2017 Seadex GmbH //
5 // //
6 // Licensing information is available in the folder "license" which is part of this distribution. //
7 // The same information is available on the www @ http://yasmine.seadex.de/Licenses.html. //
8 // //
10 
11 
12 #ifndef EVENT_990555DD_B4D7_49E4_AC39_7448568164F0
13 #define EVENT_990555DD_B4D7_49E4_AC39_7448568164F0
14 
15 
16 #include "essentials/non_copyable.hpp"
17 
18 #include "event_id.hpp"
19 #include "event_priority.hpp"
20 #include "event_fwd.hpp"
21 
22 
23 namespace sxy
24 {
25 
28 class event
29 {
30 public:
32  {
33  // Nothing to do...
34  }
35 
36 
37  virtual ~event() SX_NOEXCEPT
38  {
39  // Nothing to do...
40  }
41 
42 
43  SX_NO_COPY(event)
44 
45 
46  virtual event_id get_id() const = 0;
48 
51  virtual std::string get_name() const = 0;
52 
55  virtual event_priority get_priority() const = 0;
56 
60  virtual bool operator>(const event& _rhs) const = 0;
61 };
62 
63 
64 }
65 
66 
67 #endif
sxe::int8_t event_priority
The type alias for yasmine's event priorities.
Definition: event_priority.hpp:26
virtual event_id get_id() const =0
Getter of event's ID.
virtual bool operator>(const event &_rhs) const =0
Method for comparing the priorities between the current event and a given event.
sxe::uint32_t event_id
The type alias for yasmine's event IDs.
Definition: event_id.hpp:26
virtual ~event() SX_NOEXCEPT
Definition: event.hpp:37
Interface of an event. An event has an ID, a name and a priority (for processing by the async state m...
Definition: event.hpp:28
Definition: adapter_cpp11.hpp:21
event()
Definition: event.hpp:31
virtual std::string get_name() const =0
Getter of event's name.
virtual event_priority get_priority() const =0
Getter of event's priority.