Event.hpp 865 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-11-26
  6. * Changed: 2020-11-29
  7. *
  8. * */
  9. #ifndef LS_STD_EVENT_HPP
  10. #define LS_STD_EVENT_HPP
  11. #include <ls_std/base/Class.hpp>
  12. #include "EventTypes.hpp"
  13. namespace ls_std {
  14. class Event : public ls_std::Class {
  15. public:
  16. explicit Event(ls_std::event_id _id);
  17. ~Event() override = default;
  18. void addParameter(const ls_std::event_parameter& _eventParameter);
  19. ls_std::event_id getId();
  20. ls_std::event_parameter_list getParameterList();
  21. void removeParameter(const ls_std::event_parameter_id& _id);
  22. private:
  23. ls_std::event_id id {};
  24. ls_std::event_parameter_list parameterList {};
  25. bool _hasParameter(const ls_std::event_id& _id);
  26. };
  27. }
  28. #endif