6 #ifndef _RNBO_PresetEvent_H_
7 #define _RNBO_PresetEvent_H_
11 #include "RNBO_Debug.h"
13 #include "RNBO_List.h"
18 class PatcherEventTarget;
27 bool operator==(
const PresetEvent& rhs)
const
32 PatcherEventTarget* getEventTarget()
const {
return nullptr; }
34 void dumpEvent()
const {}
37 friend class EventVariant;
39 void setTime(MillisecondTime eventTime) { }
71 : _eventTime(eventTime)
77 PresetEvent::Type type,
81 : _eventTime(eventTime)
89 : _eventTime(other._eventTime)
91 _preset = other._preset;
93 _callback = other._callback;
97 : _eventTime(std::move(other._eventTime))
99 _preset = std::move(other._preset);
100 _callback = std::move(other._callback);
103 other._type = Invalid;
108 _eventTime = other._eventTime;
109 _preset = other._preset;
111 _callback = other._callback;
118 _eventTime = std::move(other._eventTime);
119 _preset = std::move(other._preset);
120 _callback = std::move(other._callback);
123 other._type = Invalid;
130 return rhs.getTime() == getTime()
131 && rhs.getType() == getType()
132 && rhs.getPreset() == getPreset();
135 PresetEvent::Type getType()
const {
return _type; }
137 PresetPtr getPreset()
const {
return _preset; }
141 PatcherEventTarget* getEventTarget()
const {
return nullptr; }
144 void dumpEvent()
const {
152 PresetEvent::Type _type = Invalid;
157 friend class EventVariant;
162 #endif // RNBO_NOPRESETS
167 #endif // #ifndef _RNBO_PresetEvent_H_