Jamba  3.0.2
pongasoft::VST::FObjectCx Class Reference

#include <FObjectCx.h>

Inherits FObject.

Inherited by pongasoft::VST::FObjectCxCallback, and pongasoft::VST::GUI::Params::GUIParamCx.

Public Member Functions

virtual void close ()
 
 FObjectCx (FObject *iTarget)
 
 FObjectCx (FObjectCx const &)=delete
 
virtual void onTargetChange ()
 
FObjectCxoperator= (FObjectCx const &)=delete
 
 ~FObjectCx () override
 

Protected Member Functions

void PLUGIN_API update (FUnknown *iChangedUnknown, Steinberg::int32 iMessage) SMTG_OVERRIDE
 

Protected Attributes

bool fIsConnected
 
FObject * fTarget
 

Detailed Description

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).

Constructor & Destructor Documentation

◆ FObjectCx() [1/2]

pongasoft::VST::FObjectCx::FObjectCx ( FObject *  iTarget)
explicit

◆ ~FObjectCx()

pongasoft::VST::FObjectCx::~FObjectCx ( )
inlineoverride

Automatically closes the connection and stops listening

◆ FObjectCx() [2/2]

pongasoft::VST::FObjectCx::FObjectCx ( FObjectCx const &  )
delete

Member Function Documentation

◆ close()

void pongasoft::VST::FObjectCx::close ( )
virtual

Call to stop listening for changes. Also called automatically from the destructor.

Reimplemented in pongasoft::VST::FObjectCxCallback, and pongasoft::VST::GUI::Params::GUIParamCx.

◆ onTargetChange()

virtual void pongasoft::VST::FObjectCx::onTargetChange ( )
inlinevirtual

Called when the target changes (by default does nothing)

Reimplemented in pongasoft::VST::FObjectCxCallback, and pongasoft::VST::GUI::Params::GUIParamCx.

◆ operator=()

FObjectCx& pongasoft::VST::FObjectCx::operator= ( FObjectCx const &  )
delete

◆ update()

void pongasoft::VST::FObjectCx::update ( FUnknown *  iChangedUnknown,
Steinberg::int32  iMessage 
)
protected

This is being called when fTarget sends a message to this object

Member Data Documentation

◆ fIsConnected

bool pongasoft::VST::FObjectCx::fIsConnected
protected

◆ fTarget

FObject* pongasoft::VST::FObjectCx::fTarget
protected

The documentation for this class was generated from the following files: