12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2020-11-26
- * Changed: 2022-05-12
- *
- * */
- #ifndef LS_STD_EVENT_HPP
- #define LS_STD_EVENT_HPP
- #include <ls_std/core/Class.hpp>
- #include <ls_std/core/interface/ISerializable.hpp>
- #include <memory>
- #include <ls_std/core/types/EventTypes.hpp>
- namespace ls
- {
- namespace std
- {
- namespace event
- {
- class Event : public ls::std::core::Class
- {
- public:
- explicit Event(const ls::std::core::type::event_id &_id);
- ~Event() override = default;
- // additional functionality
- bool addParameter(const ls::std::core::type::event_parameter &_eventParameter);
- void clearParameterList();
- ls::std::core::type::event_id getId();
- ls::std::core::type::event_parameter_list getParameterList();
- bool removeParameter(const ls::std::core::type::event_parameter_id &_id);
- void setId(const ls::std::core::type::event_id &_id);
- private:
- ls::std::core::type::event_id id{};
- ls::std::core::type::event_parameter_list parameterList{};
- void _assignId(const ls::std::core::type::event_id &_id);
- bool _hasParameter(const ls::std::core::type::event_id &_id);
- };
- }
- }
- }
- #endif
|