/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2020-11-14 * Changed: 2021-04-23 * * */ #ifndef LS_STD_NARRATOR_HPP #define LS_STD_NARRATOR_HPP #include #include "IListener.hpp" #include #include namespace ls_std { class Narrator : public Class { public: Narrator(); ~Narrator() override = default; void addListener(const std::shared_ptr &_listener); void clear(); std::list> getListeners(); void removeListener(const std::shared_ptr &_listener); void tell(const ls_std::Class &_info); private: std::list> listeners{}; }; } #endif