1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2024-05-16
- * Changed: 2024-05-30
- *
- * */
- #ifndef LS_STD_EVENT_HPP
- #define LS_STD_EVENT_HPP
- #include <ls-std/core/Class.hpp>
- #include <ls-std/os/dynamic-goal.hpp>
- #include <memory>
- #include <string>
- /*
- * @class(name: 'Event', package: 'event')
- * */
- namespace ls::std::event
- {
- class LS_STD_DYNAMIC_GOAL Event : public ls::std::core::Class
- {
- public:
- explicit Event(const ::std::string &_name);
- ~Event() noexcept override;
- [[nodiscard]] ::std::shared_ptr<ls::std::core::Class> getManager() const;
- void setManager(const ::std::shared_ptr<ls::std::core::Class> &_manager);
- [[nodiscard]] ls::std::event::Event supervisedBy(const ::std::shared_ptr<ls::std::core::Class> &_manager) const;
- private:
- ::std::shared_ptr<ls::std::core::Class> manager{};
- };
- }
- #endif
|