123456789101112131415161718192021222324252627282930313233 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2020-11-27
- * Changed: 2023-02-04
- *
- * */
- #include <ls-std/core/exception/IllegalArgumentException.hpp>
- #include <ls-std/event/EventHandler.hpp>
- ls::std::event::EventHandler::EventHandler(const ls::std::core::type::event_id &_id) : ls::std::event::Narrator()
- {
- this->_assignId(_id);
- }
- ls::std::event::EventHandler::~EventHandler() = default;
- ls::std::core::type::event_id ls::std::event::EventHandler::getId()
- {
- return this->id;
- }
- void ls::std::event::EventHandler::_assignId(const ls::std::core::type::event_id &_id)
- {
- if (_id.empty())
- {
- throw ls::std::core::IllegalArgumentException{};
- }
- this->id = _id;
- }
|