TestDataMercedesCar.cpp 599 B

1234567891011121314151617181920212223
  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-05
  7. *
  8. * */
  9. #include "TestDataMercedesCar.hpp"
  10. #include "Colour.hpp"
  11. test::event::TestDataMercedesCar::TestDataMercedesCar() : TestDataCar()
  12. {
  13. this->setColor("blue");
  14. }
  15. test::event::TestDataMercedesCar::~TestDataMercedesCar() = default;
  16. void test::event::TestDataMercedesCar::listen(const ls::std::core::Class &_info)
  17. {
  18. this->setColor(dynamic_cast<const test::event::Colour &>(_info).getValue());
  19. }