AnnUserSpaceEvent.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "systemMacro.h"
4 
5 #include <memory>
6 #include <string>
7 #include <functional>
8 
9 namespace Annwvyn
10 {
13  {
14  public:
16  explicit AnnUserSpaceEvent(const std::string& typeName);
17 
19  virtual ~AnnUserSpaceEvent() = default;
20 
22  using AnnUserSpaceEventTypeHash = size_t;
23 
25  AnnUserSpaceEventTypeHash getType() const;
26 
27  private:
30 
33  };
34 
36 
39  {
40  public:
42  virtual ~AnnUserSpaceEventLauncher() = default;
43 
45  AnnUserSpaceEventLauncher() = default;
46 
47  protected:
49  virtual void dispatchEvent(AnnUserSpaceEventPtr e);
50  };
51 }
file for defining macros used for symbol export regarding the way the OS does things.
Class that can send a user space event to the event manager.
const AnnUserSpaceEventTypeHash eventTypeHash
Hash of the type.
Namespace containing the totality of Annwvyn components.
Definition: AnnGetter.cpp:8
const std::string eventTypeName
Name of the type.
size_t AnnUserSpaceEventTypeHash
Define hash type.
#define AnnDllExport
Definition: systemMacro.h:24
Base class of an event created by user space code.