6 #ifndef _RNBO_PresetEvent_H_
7 #define _RNBO_PresetEvent_H_
12 #include "RNBO_List.h"
13 #include "RNBO_PlatformInterface.h"
14 #include "RNBO_Logger.h"
15 #include "RNBO_Debug.h"
20 class PatcherEventTarget;
29 bool operator==(
const PresetEvent& rhs)
const
34 PatcherEventTarget* getEventTarget()
const {
return nullptr; }
36 void dumpEvent()
const {}
39 friend class EventVariant;
41 void setTime(MillisecondTime eventTime) { }
73 : _eventTime(eventTime)
79 PresetEvent::Type type,
83 : _eventTime(eventTime)
91 : _eventTime(other._eventTime)
93 _preset = other._preset;
95 _callback = other._callback;
99 : _eventTime(std::move(other._eventTime))
101 _preset = std::move(other._preset);
102 _callback = std::move(other._callback);
105 other._type = Invalid;
110 _eventTime = other._eventTime;
111 _preset = other._preset;
113 _callback = other._callback;
120 _eventTime = std::move(other._eventTime);
121 _preset = std::move(other._preset);
122 _callback = std::move(other._callback);
125 other._type = Invalid;
132 return rhs.getTime() == getTime()
133 && rhs.getType() == getType()
134 && rhs.getPreset() == getPreset();
137 PresetEvent::Type getType()
const {
return _type; }
139 PresetPtr getPreset()
const {
return _preset; }
143 PatcherEventTarget* getEventTarget()
const {
return nullptr; }
146 void dumpEvent()
const {
154 PresetEvent::Type _type = Invalid;
159 friend class EventVariant;
164 #endif // RNBO_NOPRESETS
169 #endif // #ifndef _RNBO_PresetEvent_H_