Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::format::ScopedHostParameterWrite Class Reference

Marks the enclosing scope as a HOST-originated parameter write. More...

#include <host_parameter_edit.hpp>

Public Member Functions

 ScopedHostParameterWrite () noexcept
 ScopedHostParameterWrite (const ScopedHostParameterWrite &)=delete
ScopedHostParameterWrite & operator= (const ScopedHostParameterWrite &)=delete
 ~ScopedHostParameterWrite () noexcept

Static Public Member Functions

static bool active () noexcept

Detailed Description

Marks the enclosing scope as a HOST-originated parameter write.

Wrap every point where the host's value reaches the StateStore: the automation applied during process(), a setState/preset restore, a host-driven controller write. Without the mark, an edit bridge on the same thread cannot tell the host's own value from the user's and will echo it back — which hosts variously treat as a fight for control, a spurious automation write, or an undo-history entry the user never made.

Reentrant and thread-local: nesting is counted, and a mark on one thread never suppresses a genuine editor write on another.

Constructor & Destructor Documentation

◆ ScopedHostParameterWrite() [1/2]

pulp::format::ScopedHostParameterWrite::ScopedHostParameterWrite ( )
inlinenoexcept

◆ ScopedHostParameterWrite() [2/2]

pulp::format::ScopedHostParameterWrite::ScopedHostParameterWrite ( const ScopedHostParameterWrite & )
delete

◆ ~ScopedHostParameterWrite()

pulp::format::ScopedHostParameterWrite::~ScopedHostParameterWrite ( )
inlinenoexcept

Member Function Documentation

◆ active()

bool pulp::format::ScopedHostParameterWrite::active ( )
inlinestaticnoexcept

◆ operator=()

ScopedHostParameterWrite & pulp::format::ScopedHostParameterWrite::operator= ( const ScopedHostParameterWrite & )
delete

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