Event.hpp 916 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2024-05-16
  6. * Changed: 2024-05-30
  7. *
  8. * */
  9. #ifndef LS_STD_EVENT_HPP
  10. #define LS_STD_EVENT_HPP
  11. #include <ls-std/core/Class.hpp>
  12. #include <ls-std/os/dynamic-goal.hpp>
  13. #include <memory>
  14. #include <string>
  15. namespace ls::std::event
  16. {
  17. class LS_STD_DYNAMIC_GOAL Event : public ls::std::core::Class
  18. {
  19. public:
  20. explicit Event(const ::std::string &_name);
  21. ~Event() noexcept override;
  22. [[nodiscard]] ::std::shared_ptr<ls::std::core::Class> getManager() const;
  23. void setManager(const ::std::shared_ptr<ls::std::core::Class> &_manager);
  24. [[nodiscard]] ls::std::event::Event supervisedBy(const ::std::shared_ptr<ls::std::core::Class> &_manager) const;
  25. private:
  26. ::std::shared_ptr<ls::std::core::Class> manager{};
  27. };
  28. }
  29. #endif