Event.hpp 983 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-11-26
  6. * Changed: 2020-12-20
  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. void clearParameterList();
  20. ls_std::event_id getId();
  21. ls_std::event_parameter_list getParameterList();
  22. void removeParameter(const ls_std::event_parameter_id& _id);
  23. void setId(ls_std::event_id _id);
  24. private:
  25. ls_std::event_id id {};
  26. ls_std::event_parameter_list parameterList {};
  27. void _assignId(ls_std::event_id _id);
  28. bool _hasParameter(const ls_std::event_id& _id);
  29. };
  30. }
  31. #endif