JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::ARAEditGuard Class Reference

Reference counting helper class to ensure that the DocumentController is in editable state. More...

#include "juce_ARAHosting.h"

Public Member Functions

 ARAEditGuard (ARA::Host::DocumentController &dcIn)
 

Detailed Description

Reference counting helper class to ensure that the DocumentController is in editable state.

When adding, removing or modifying ARA model objects the enclosing DocumentController must be in editable state.

You can achieve this by using the ARA Library calls ARA::Host::DocumentController::beginEditing() and ARA::Host::DocumentController::endEditing().

However, putting the DocumentController in and out of editable state is a potentially costly operation, thus it makes sense to group multiple modifications together and change the editable state only once.

ARAEditGuard keeps track of all scopes that want to edit a particular DocumentController and will trigger beginEditing() and endEditing() only for the outermost scope. This allows you to merge multiple editing operations into one by putting ARAEditGuard in their enclosing scope.

@tags{ARA}

Definition at line 59 of file juce_ARAHosting.h.


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