GossipNewsAgency.hpp 808 B

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