Event.hpp 800 B

123456789101112131415161718192021222324252627282930313233343536
  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-31
  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/core/definition.hpp>
  13. #include <memory>
  14. namespace ls::std::event
  15. {
  16. ls_std_class Event : public core::Class
  17. {
  18. public:
  19. explicit Event(const ::std::string &_name);
  20. ~Event() noexcept override;
  21. [[nodiscard]] ::std::shared_ptr<Class> getManager() const;
  22. void setManager(const ::std::shared_ptr<Class> &_manager);
  23. [[nodiscard]] Event supervisedBy(const ::std::shared_ptr<Class> &_manager) const;
  24. private:
  25. ::std::shared_ptr<Class> manager{};
  26. };
  27. }
  28. #endif