TestDataMercedesCar.cpp 637 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-11-14
  6. * Changed: 2023-02-23
  7. *
  8. * */
  9. #include "TestDataMercedesCar.hpp"
  10. #include "Colour.hpp"
  11. using ls::std::core::Class;
  12. using test::event::Colour;
  13. using test::event::TestDataMercedesCar;
  14. TestDataMercedesCar::TestDataMercedesCar() : TestDataCar()
  15. {
  16. this->setColor("blue");
  17. }
  18. TestDataMercedesCar::~TestDataMercedesCar() noexcept = default;
  19. void TestDataMercedesCar::listen(const Class &_info)
  20. {
  21. this->setColor(dynamic_cast<const Colour &>(_info).getValue());
  22. }