Kanzi Framework  3.9.0
Kanzi Engine API
kanzi::BindingSource Class Referenceabstract

Binding source contains all the persistent data that you need to access a source value for the binding. More...

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

Inheritance diagram for kanzi::BindingSource:
[legend]

Public Member Functions

BindingSourceRuntimePtr createRuntime (BindingLookupContextPtr lookupContext)
 Creates binding source runtime. More...
 
virtual ~BindingSource ()
 Destructor. More...
 

Protected Member Functions

 BindingSource ()
 Constructor. More...
 
virtual BindingSourceRuntimePtr createRuntimeOverride (BindingLookupContextPtr lookupContext)=0
 Creates binding source runtime. More...
 

Detailed Description

Binding source contains all the persistent data that you need to access a source value for the binding.

To implement specialized ways to get the values, use the specialized binding sources DataSourceBindingSource, ManualBindingSource, ObjectPropertyBindingSource, ValueBindingSource.

When an AbstractBindingRuntime is created for an AbstractBinding, a BindingSourceRuntime is created for the BindingSource in that binding. BindingSourceRuntime specifies the virtual functions required for the binding runtime to read values.

See also
AbstractBinding, DataSourceBindingSource, ExpressionBindingSource, ManualBindingSource, MessageBindingSource, ObjectPropertyBindingSource, ResourceBindingSource, ValueBindingSource
Since
Kanzi 3.7.0

Constructor & Destructor Documentation

◆ ~BindingSource()

virtual kanzi::BindingSource::~BindingSource ( )
inlinevirtual

Destructor.

◆ BindingSource()

kanzi::BindingSource::BindingSource ( )
inlineexplicitprotected

Constructor.

Member Function Documentation

◆ createRuntime()

BindingSourceRuntimePtr kanzi::BindingSource::createRuntime ( BindingLookupContextPtr  lookupContext)

Creates binding source runtime.

Parameters
lookupContextLookup context for this binding source runtime.
Returns
The binding source runtime.

◆ createRuntimeOverride()

virtual BindingSourceRuntimePtr kanzi::BindingSource::createRuntimeOverride ( BindingLookupContextPtr  lookupContext)
protectedpure virtual

Creates binding source runtime.

Parameters
lookupContextLookup context for this binding source runtime.
Returns
The binding source runtime.

Implemented in kanzi::ExpressionBindingSource, kanzi::ObjectPropertyBindingSource, kanzi::ManualBindingSource, kanzi::DataSourceBindingSource, kanzi::VariableBindingSource, kanzi::RenderPropertyBindingSource, kanzi::MessageBindingSource, kanzi::ResourceBindingSource, and kanzi::ValueBindingSource.


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