rad 6.2.0
Loading...
Searching...
No Matches
testEvents.hpp
Go to the documentation of this file.
1
10#ifndef RAD_TEST_EVENTS_HPP
11#define RAD_TEST_EVENTS_HPP
12#include <rad/anyEvent.hpp>
13
14namespace myevents {
15
17 static constexpr char const* ID = "FooEvent";
18 using payload_t = std::string;
19};
21
23 static constexpr char const* ID = "BazEvent";
24 using payload_t = std::string;
25};
27
28class BarEvent final : public ::rad::AnyEvent {
29 public:
30 static constexpr char const* ID = "BarEvent";
31 using payload_t = void;
32
33 BarEvent(BarEvent const&) = default;
34 BarEvent(BarEvent&&) = default;
35 BarEvent& operator=(BarEvent& e) = default;
36
38
39 AnyEvent* Clone() const override { return new BarEvent(*this); }
40};
41
42} // namespace myevents
43#endif // #ifndef RAD_TEST_EVENTS_HPP
AnyEvent class header file.
Definition testEvents.hpp:28
BarEvent()
Definition testEvents.hpp:37
BarEvent(BarEvent &&)=default
BarEvent(BarEvent const &)=default
void payload_t
Definition testEvents.hpp:31
BarEvent & operator=(BarEvent &e)=default
AnyEvent * Clone() const override
Definition testEvents.hpp:39
static constexpr char const * ID
Definition testEvents.hpp:30
Definition anyEvent.hpp:52
AnyEvent(char const *id)
Definition anyEvent.cpp:13
Definition anyEvent.hpp:93
Definition testEvents.hpp:14
Definition testEvents.hpp:22
std::string payload_t
Definition testEvents.hpp:24
static constexpr char const * ID
Definition testEvents.hpp:23
Definition testEvents.hpp:16
static constexpr char const * ID
Definition testEvents.hpp:17
std::string payload_t
Definition testEvents.hpp:18