20 #include <base/source/fobject.h> 21 #include <pluginterfaces/vst/vsttypes.h> 27 using namespace Steinberg::Vst;
28 using namespace Steinberg;
63 void PLUGIN_API update(FUnknown *iChangedUnknown, Steinberg::int32 iMessage) SMTG_OVERRIDE;
82 void close()
override;
85 void onTargetChange()
override;
virtual void onTargetChange()
Called when the target changes (by default does nothing)
Definition: FObjectCx.h:49
~FObjectCx() override
Automatically closes the connection and stops listening.
Definition: FObjectCx.h:53
Wrapper class which maintains a connection between the target and this object.
Definition: FObjectCx.h:35
bool fIsConnected
Definition: FObjectCx.h:67
FObject * fTarget
Definition: FObjectCx.h:66
ChangeCallback fChangeCallback
Definition: FObjectCx.h:92
std::function< void()> ChangeCallback
Definition: FObjectCx.h:76
Wrapper class which will invoke the callback when the target is changed.
Definition: FObjectCx.h:73