Kanzi 3.9.10
kanzi::TypedRenderValueBindingTargetRuntime< T > Class Template Reference

Typed runtime for render value binding target. More...

#include <kanzi/core.ui/binding/typed_render_value_binding_target_runtime.hpp>

Inheritance diagram for kanzi::TypedRenderValueBindingTargetRuntime< T >:
[legend]

Public Member Functions

 ~TypedRenderValueBindingTargetRuntime ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::RenderValueBindingTargetRuntime
GlRenderStategetRenderState () const
 Gets the render state from the associated render value lookup context.
 
BindingRenderValueLookupContextgetRenderValueLookupContext () const
 Gets the lookup context as correct type.
 
string getRenderValueName () const
 Gets the name of the render value used.
 
- Public Member Functions inherited from kanzi::BindingTargetRuntime
void attachForRead ()
 Attaches the binding target runtime for reading.
 
void attachForWrite ()
 Attaches the binding target runtime for writing.
 
BindingProcessorRuntimeConstIterator beginProcessorRuntimes () const
 Gets an iterator to the beginning of binding processor runtimes.
 
void createBindingProcessorsRuntimes (const AbstractBinding &binding)
 Creates a processor runtime for each BindingProcessor held by the binding parameter.
 
void detach ()
 Detaches binding target runtime.
 
BindingProcessorRuntimeConstIterator endProcessorRuntimes () const
 Gets an iterator to the end of binding processor runtimes.
 
AbstractBindingRuntimegetBindingRuntime () const
 Gets the binding runtime.
 
BindingLookupContextgetLookupContext () const
 Gets the lookup context.
 
bool isConnected ()
 Indicates whether this source is connected.
 
bool read (Variant &value)
 Reads a value from the binding target.
 
void setBindingRuntime (AbstractBindingRuntime &bindingRuntime)
 Sets the binding runtime.
 
bool write (const Variant &value)
 Writes a value to the binding target.
 
virtual ~BindingTargetRuntime ()=default
 Destructor.
 

Static Public Member Functions

static BindingTargetRuntimePtr create (string_view renderValueName)
 Create a render value binding target runtime.
 
- Static Public Member Functions inherited from kanzi::RenderValueBindingTargetRuntime
static BindingTargetRuntimePtr create (AbstractPropertyType propertyType)
 Creates a new object render value binding target runtime.
 
static BindingTargetRuntimePtr create (PropertyDataType dataType, string_view renderValueName)
 Creates a new object render value binding target runtime.
 

Protected Member Functions

GlRenderState::HandleType allocateHandle ()
 Allocates a handle from the render state.
 
void attachForWriteOverride () override
 BindingTargetRuntime::attachForWriteOverride() implementation.
 
void detachOverride () override
 BindingTargetRuntime::detachOverride() implementation.
 
 TypedRenderValueBindingTargetRuntime (string_view renderValueName)
 Constructor.
 
bool writeOverride (const Variant &value) override
 BindingTargetRuntime::writeOverride() implementation.
 
- Protected Member Functions inherited from kanzi::RenderValueBindingTargetRuntime
void attachForReadOverride () override
 BindingTargetRuntime::attachForReadOverride() implementation.
 
bool isConnectedOverride () override
 BindingTargetRuntime::isConnectedOverride() implementation.
 
 RenderValueBindingTargetRuntime (string_view renderValueName)
 Constructor.
 
- Protected Member Functions inherited from kanzi::BindingTargetRuntime
 BindingTargetRuntime ()=default
 Constructor.
 
virtual bool readOverride (Variant &value)
 Implementation-dependent read.
 

Protected Attributes

GlRenderState::HandleType m_handle
 Handle acquired from render state.
 
- Protected Attributes inherited from kanzi::RenderValueBindingTargetRuntime
string m_renderValueName
 Target property type.
 
- Protected Attributes inherited from kanzi::BindingTargetRuntime
AbstractBindingRuntimem_bindingRuntime
 Abstract binding runtime for this target.
 
BindingProcessorRuntimeContainer m_processorRuntimes
 Binding processors runtimes (for the target, backward direction).
 

Additional Inherited Members

- Public Types inherited from kanzi::BindingTargetRuntime
using BindingProcessorRuntimeConstIterator
 Binding processor iterator type.
 
using BindingProcessorRuntimeContainer
 Binding processor container type.
 

Detailed Description

template<typename T>
class kanzi::TypedRenderValueBindingTargetRuntime< T >

Typed runtime for render value binding target.

Since
Kanzi 3.9.0

Constructor & Destructor Documentation

◆ ~TypedRenderValueBindingTargetRuntime()

◆ TypedRenderValueBindingTargetRuntime()

template<typename T >
kanzi::TypedRenderValueBindingTargetRuntime< T >::TypedRenderValueBindingTargetRuntime ( string_view renderValueName)
inlineexplicitprotected

Constructor.

Parameters
renderValueNameName of the render value to use.
Since
Kanzi 3.9.6 Removed BindingLookupContexPtr.

Member Function Documentation

◆ create()

template<typename T >
static BindingTargetRuntimePtr kanzi::TypedRenderValueBindingTargetRuntime< T >::create ( string_view renderValueName)
inlinestatic

Create a render value binding target runtime.

Parameters
renderValueNameName of the render value to use.
Since
Kanzi 3.9.6 Removed BindingLookupContexPtr.

◆ allocateHandle()

template<typename T >
GlRenderState::HandleType kanzi::TypedRenderValueBindingTargetRuntime< T >::allocateHandle ( )
inlineprotected

Allocates a handle from the render state.

Returns
Corresponding handle that can be used for writing the value.

◆ writeOverride()

template<typename T >
bool kanzi::TypedRenderValueBindingTargetRuntime< T >::writeOverride ( const Variant & value)
inlineoverrideprotectedvirtual

◆ attachForWriteOverride()

template<typename T >
void kanzi::TypedRenderValueBindingTargetRuntime< T >::attachForWriteOverride ( )
inlineoverrideprotectedvirtual

◆ detachOverride()

template<typename T >
void kanzi::TypedRenderValueBindingTargetRuntime< T >::detachOverride ( )
inlineoverrideprotectedvirtual

Member Data Documentation

◆ m_handle

Handle acquired from render state.


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