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

Typed runtime for variable binding source. More...

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

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

Public Types

using VariableBindingTargetType
 Type for the variable binding target that this variable binding source is reading from.
 
- Public Types inherited from kanzi::BindingSourceRuntime
using BindingProcessorRuntimeConstIterator
 Binding processor runtime constant iterator type.
 
using BindingProcessorRuntimeContainer
 Binding processor runtime container type.
 

Public Member Functions

 ~TypedVariableBindingSourceRuntime () override
 Destructor.
 
- Public Member Functions inherited from kanzi::VariableBindingSourceRuntime
PropertyField getPropertyField () const
 Gets property field.
 
- Public Member Functions inherited from kanzi::BindingSourceRuntime
void attachForRead ()
 Attaches the binding source runtime for reading.
 
void attachForWrite ()
 Attaches the binding source runtime for writing.
 
BindingProcessorRuntimeConstIterator beginProcessorRuntimes () const
 Gets an iterator to the beginning of binding processors.
 
void createBindingProcessorRuntimes (const AbstractBinding &binding)
 Creates a processor runtime for each BindingProcessor held by the binding parameter.
 
void detach ()
 Detaches the binding source runtime.
 
BindingProcessorRuntimeConstIterator endProcessorRuntimes () const
 Gets an iterator to the end of binding processors.
 
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 binding source.
 
void setBindingRuntime (AbstractBindingRuntime &bindingRuntime)
 Sets the binding runtime.
 
bool write (const Variant &value)
 Writes a value to binding source.
 
virtual ~BindingSourceRuntime ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::AbstractBindingVariableSource
AbstractPropertyType getPropertyType () const
 Gets the associated property type for this variable source.
 
void notifyVariableAvailable ()
 Notification function for when variable has become available or has been changed.
 
void notifyVariableDetached ()
 Notification function for when variable has become detached and is no longer available.
 
void setTargetRuntime (VariableBindingTargetRuntime *targetRuntime)
 Sets the variable binding target runtime.
 

Static Public Member Functions

static BindingSourceRuntimePtr create (const VariableBindingSource &source)
 Creates a typed variable binding source runtime.
 
- Static Public Member Functions inherited from kanzi::VariableBindingSourceRuntime
static BindingSourceRuntimePtr create (const VariableBindingSource &bindingSource)
 Creates a manual binding source runtime.
 

Protected Member Functions

void attachForReadOverride () override
 BindingSourceRuntime::attachForReadOverride() implementation.
 
VariableBindingTargetTypegetTargetRuntime ()
 Gets the current target runtime as the correct type.
 
bool isConnectedOverride () override
 BindingSourceRuntime::isConnectedOverride() implementation.
 
bool readOverride (Variant &value) override
 BindingSourceRuntime::readOverride() implementation.
 
 TypedVariableBindingSourceRuntime (const VariableBindingSource &source)
 Constructor.
 
- Protected Member Functions inherited from kanzi::VariableBindingSourceRuntime
void attachForWriteOverride () override
 BindingSourceRuntime::attachForWriteOverride() implementation.
 
void detachOverride () override
 BindingSourceRuntime::detachOverride() implementation.
 
AbstractPropertyType getPropertyTypeOverride () const override
 AbstractBindingVariableSource::getPropertyType() implementation.
 
void notifyVariableAvailableOverride () override
 AbstractBindingVariableSource::notifyVariableAvailableOverride() implementation.
 
void notifyVariableDetachedOverride () override
 AbstractBindingVariableSource::notifyVariableDetachedOverride() implementation.
 
 VariableBindingSourceRuntime (const VariableBindingSource &bindingSource)
 Constructor.
 
- Protected Member Functions inherited from kanzi::BindingSourceRuntime
 BindingSourceRuntime ()=default
 Constructor.
 
virtual bool writeOverride (const Variant &value)
 Implementation-dependent write.
 

Additional Inherited Members

- Protected Attributes inherited from kanzi::VariableBindingSourceRuntime
const VariableBindingSourcem_source
 Binding source that created this runtime.
 
- Protected Attributes inherited from kanzi::BindingSourceRuntime
AbstractBindingRuntimem_bindingRuntime
 Abstract binding runtime for this source.
 
BindingProcessorRuntimeContainer m_processorRuntimes
 Binding processors (for the source, forward direction).
 
- Protected Attributes inherited from kanzi::AbstractBindingVariableSource
VariableBindingTargetRuntimem_targetRuntime
 Currently connected target runtime.
 

Detailed Description

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

Typed runtime for variable binding source.

Since
Kanzi 3.9.0

Member Typedef Documentation

◆ VariableBindingTargetType

template<typename T >
using kanzi::TypedVariableBindingSourceRuntime< T >::VariableBindingTargetType

Type for the variable binding target that this variable binding source is reading from.

Constructor & Destructor Documentation

◆ ~TypedVariableBindingSourceRuntime()

◆ TypedVariableBindingSourceRuntime()

template<typename T >
kanzi::TypedVariableBindingSourceRuntime< T >::TypedVariableBindingSourceRuntime ( const VariableBindingSource & source)
inlineexplicitprotected

Constructor.

Parameters
sourceHost variable property binding source.
Since
Kanzi 3.9.6 Removed BindingLookupContextPtr.

Member Function Documentation

◆ create()

Creates a typed variable binding source runtime.

Parameters
sourceHost variable binding source.
Returns
The created typed variable binding source runtime.
Since
Kanzi 3.9.6 Removed BindingLookupContextPtr.

◆ getTargetRuntime()

template<typename T >
VariableBindingTargetType * kanzi::TypedVariableBindingSourceRuntime< T >::getTargetRuntime ( )
inlineprotected

Gets the current target runtime as the correct type.

Returns
Variable target runtime connected to.

◆ attachForReadOverride()

template<typename T >
void kanzi::TypedVariableBindingSourceRuntime< T >::attachForReadOverride ( )
inlineoverrideprotectedvirtual

◆ isConnectedOverride()

template<typename T >
bool kanzi::TypedVariableBindingSourceRuntime< T >::isConnectedOverride ( )
inlineoverrideprotectedvirtual

◆ readOverride()

template<typename T >
bool kanzi::TypedVariableBindingSourceRuntime< T >::readOverride ( Variant & value)
inlineoverrideprotectedvirtual

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