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