Jamba C++ API
5.1.1
|
Wrapper class which maintains a connection between the target and this object. More...
#include <FObjectCx.h>
Inherits FObject.
Inherited by FObjectCxCallback, and GUIParamCx.
Public Member Functions | |
virtual void | close () |
Call to stop listening for changes. More... | |
FObjectCx (FObject *iTarget) | |
FObjectCx (FObjectCx const &)=delete | |
virtual void | onTargetChange () |
Called when the target changes (by default does nothing) More... | |
FObjectCx & | operator= (FObjectCx const &)=delete |
~FObjectCx () override | |
Automatically closes the connection and stops listening. More... | |
Protected Member Functions | |
void PLUGIN_API | update (FUnknown *iChangedUnknown, Steinberg::int32 iMessage) SMTG_OVERRIDE |
This is being called when fTarget sends a message to this object. More... | |
Protected Attributes | |
bool | fIsConnected |
FObject * | fTarget |
Wrapper class which maintains a connection between the target and this object.
The connection will be terminated if close() is called or automatically when the destructor is called. The main point of this class is to turn FObject.addRef/addDependent into an RAII concept (Resource Acquisition Is Initialization).
|
explicit |
|
inlineoverride |
Automatically closes the connection and stops listening.
|
virtual |
Call to stop listening for changes.
Also called automatically from the destructor.
Reimplemented in FObjectCxCallback, and GUIParamCx.
|
inlinevirtual |
Called when the target changes (by default does nothing)
Reimplemented in FObjectCxCallback, and GUIParamCx.
|
protected |
This is being called when fTarget sends a message to this object.
|
protected |
|
protected |