IEventSubscriber.hpp 731 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-11-27
  6. * Changed: 2020-11-29
  7. *
  8. * */
  9. #ifndef LS_STD_I_EVENT_SUBSCRIBER_HPP
  10. #define LS_STD_I_EVENT_SUBSCRIBER_HPP
  11. #include "EventTypes.hpp"
  12. #include <memory>
  13. #include <ls_std/logic/IListener.hpp>
  14. namespace ls_std {
  15. class IEventSubscriber {
  16. public:
  17. IEventSubscriber() = default;
  18. ~IEventSubscriber() = default;
  19. virtual void subscribe(const ls_std::event_id& _id, const std::shared_ptr<IListener>& _listener) = 0;
  20. virtual void unsubscribe(const ls_std::event_id& _id, const std::shared_ptr<IListener>& _listener) = 0;
  21. };
  22. }
  23. #endif