1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2020-11-27
- * Changed: 2024-05-24
- *
- * */
- #ifndef LS_STD_EVENT_HANDLER_HPP
- #define LS_STD_EVENT_HANDLER_HPP
- #include "Event.hpp"
- #include "Narrator.hpp"
- #include <list>
- #include <ls-std/core/Class.hpp>
- #include <ls-std/core/interface/IListener.hpp>
- #include <ls-std/os/dynamic-goal.hpp>
- #include <memory>
- /*
- * @class(name: 'EventHandler', package: 'event')
- * */
- namespace ls::std::event
- {
- class LS_STD_DYNAMIC_GOAL EventHandler : public ls::std::event::Narrator
- {
- public:
- explicit EventHandler(const ls::std::core::type::event_id &_id);
- ~EventHandler() noexcept override;
- [[nodiscard]] ls::std::core::type::event_id getId() const;
- private:
- ls::std::core::type::event_id id{};
- void _assignId(const ls::std::core::type::event_id &_id);
- };
- }
- #endif
|