Event.hpp 974 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2024-05-16
  6. * Changed: 2024-09-09
  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. /*
  16. * @doc: class(name: 'Event', package: 'event')
  17. * */
  18. namespace ls::std::event
  19. {
  20. class LS_STD_DYNAMIC_GOAL Event : public ls::std::core::Class
  21. {
  22. public:
  23. explicit Event(const ::std::string &_name);
  24. ~Event() noexcept override;
  25. [[nodiscard]] ::std::shared_ptr<ls::std::core::Class> getManager() const;
  26. void setManager(const ::std::shared_ptr<ls::std::core::Class> &_manager);
  27. [[nodiscard]] ls::std::event::Event supervisedBy(const ::std::shared_ptr<ls::std::core::Class> &_manager) const;
  28. private:
  29. ::std::shared_ptr<ls::std::core::Class> manager{};
  30. };
  31. }
  32. #endif