DailyNewsAgency.hpp 842 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-11-27
  6. * Changed: 2023-02-23
  7. *
  8. * */
  9. #ifndef LS_STD_DAILY_NEWS_AGENCY_HPP
  10. #define LS_STD_DAILY_NEWS_AGENCY_HPP
  11. #include "NewsAgency.hpp"
  12. #include <ls-std/ls-std-core.hpp>
  13. #include <map>
  14. #include <memory>
  15. #include <string>
  16. namespace test::event
  17. {
  18. class DailyNewsAgency : public test::event::NewsAgency, public ls::std::core::interface_type::IListener
  19. {
  20. public:
  21. DailyNewsAgency();
  22. ~DailyNewsAgency() noexcept override;
  23. // implementation
  24. void listen(const ls::std::core::Class &_info) override;
  25. // additional functionality
  26. void clear();
  27. ::std::string getNews();
  28. private:
  29. ::std::string news{};
  30. };
  31. }
  32. #endif