Samchon Framework for CPP  1.0.0
Event.hpp
1 #pragma once
2 #include <samchon/API.hpp>
3 
4 namespace samchon
5 {
6 namespace library
7 {
8  class EventDispatcher;
9 
42  class SAMCHON_FRAMEWORK_API Event
43  {
44  public:
45  enum : int
46  {
47  ACTIVATE = 1,
48  COMPLETE = 2,
49  REMOVED = -1
50  };
51 
52  protected:
57 
61  int type;
62 
63  public:
71  Event(EventDispatcher*, int);
72  virtual ~Event() = default;
73 
77  auto getSource() const->EventDispatcher*;
78 
82  auto getType() const -> int;
83  };
84 };
85 };
EventDispatcher * source
Source of the event.
Definition: Event.hpp:56
Represent an event running on background.
Definition: Event.hpp:42
int type
Type of the event.
Definition: Event.hpp:61
Abstract class for dispatching Event.
Top level namespace of products built from samchon.
Definition: ByteArray.hpp:7