/*
* Author:          Patrick-Christopher Mattulat
* Co-Author:       Claude Sonnet 4.6 (LLM)
* Company:         Lynar Studios
* E-Mail:          webmaster@lynarstudios.com
* Created:         2024-05-16
* Changed:         2026-06-23
*
* */

#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>

/*
 * @doc: class(name: 'Event', package: 'event')
 * @doc: event.Event.description('This class represents an event that can be invoked.')
 * */

namespace ls::standard::event
{
  class LS_STD_DYNAMIC_GOAL Event : public ls::standard::core::Class
  {
    public:

      explicit Event(const ::std::string &_name);
      ~Event() noexcept override;

      [[nodiscard]] ::std::shared_ptr<ls::standard::core::Class> getManager() const;
      void setManager(const ::std::shared_ptr<ls::standard::core::Class> &_manager);
      [[nodiscard]] ls::standard::event::Event supervisedBy(const ::std::shared_ptr<ls::standard::core::Class> &_manager) const;

    private:

      ::std::shared_ptr<ls::standard::core::Class> manager{};
  };
}

#endif
