EventHandler.cpp 808 B

1234567891011121314151617181920212223242526272829
  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-08
  7. *
  8. * */
  9. #include <ls-std/core/evaluator/EmptyStringArgumentEvaluator.hpp>
  10. #include <ls-std/event/EventHandler.hpp>
  11. ls::std::event::EventHandler::EventHandler(const ls::std::core::type::event_id &_id) : ls::std::event::Narrator()
  12. {
  13. this->_assignId(_id);
  14. }
  15. ls::std::event::EventHandler::~EventHandler() = default;
  16. ls::std::core::type::event_id ls::std::event::EventHandler::getId()
  17. {
  18. return this->id;
  19. }
  20. void ls::std::event::EventHandler::_assignId(const ls::std::core::type::event_id &_id)
  21. {
  22. ls::std::core::EmptyStringArgumentEvaluator{_id, "event manager id is empty!"}.evaluate();
  23. this->id = _id;
  24. }