Kanzi 3.9.10
kanzi::AbstractExpressionValueSource Class Referenceabstract

Value source base for use in bindings with multiple sources. More...

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

Inheritance diagram for kanzi::AbstractExpressionValueSource:
[legend]

Public Member Functions

BindingSourcePtr convertToBindingSource ()
 Converts this expression value source to a matching binding source.
 
AbstractExpressionValueSourceRuntimePtr createRuntime (ExpressionBindingSourceRuntime &host)
 Creates a runtime for this expression value source.
 
virtual ~AbstractExpressionValueSource ()
 Destructor.
 

Protected Member Functions

 AbstractExpressionValueSource ()
 Constructor.
 
virtual BindingSourcePtr convertToBindingSourceOverride ()=0
 Implementation-defined conversion to binding source.
 
virtual AbstractExpressionValueSourceRuntimePtr createRuntimeOverride (ExpressionBindingSourceRuntime &host)=0
 Implementation-dependent runtime creation.
 

Detailed Description

Value source base for use in bindings with multiple sources.

Inherit this class to provide a way to supply expression values.

Since
Kanzi 3.7.0

Constructor & Destructor Documentation

◆ ~AbstractExpressionValueSource()

virtual kanzi::AbstractExpressionValueSource::~AbstractExpressionValueSource ( )
inlinevirtual

Destructor.

◆ AbstractExpressionValueSource()

kanzi::AbstractExpressionValueSource::AbstractExpressionValueSource ( )
inlineprotected

Constructor.

Member Function Documentation

◆ createRuntime()

AbstractExpressionValueSourceRuntimePtr kanzi::AbstractExpressionValueSource::createRuntime ( ExpressionBindingSourceRuntime & host)

Creates a runtime for this expression value source.

Parameters
hostHost expression binding source runtime.
Returns
The created expression value source runtime.

◆ convertToBindingSource()

BindingSourcePtr kanzi::AbstractExpressionValueSource::convertToBindingSource ( )
inline

Converts this expression value source to a matching binding source.

Used to make simple bindings based on expression value sources loaded from disk.

Returns
New binding source matching this expression value source.

◆ createRuntimeOverride()

virtual AbstractExpressionValueSourceRuntimePtr kanzi::AbstractExpressionValueSource::createRuntimeOverride ( ExpressionBindingSourceRuntime & host)
protectedpure virtual

Implementation-dependent runtime creation.

Parameters
hostHost expression binding source runtime.
Returns
The created expression value source runtime.

Implemented in kanzi::DataSourceExpressionValueSource, kanzi::ObjectPropertyExpressionValueSource, kanzi::RenderPropertyExpressionValueSource, and kanzi::VariableExpressionValueSource.

◆ convertToBindingSourceOverride()

virtual BindingSourcePtr kanzi::AbstractExpressionValueSource::convertToBindingSourceOverride ( )
protectedpure virtual

Implementation-defined conversion to binding source.

Returns
New binding source matching this expression value source.

Implemented in kanzi::DataSourceExpressionValueSource, kanzi::ObjectPropertyExpressionValueSource, kanzi::RenderPropertyExpressionValueSource, and kanzi::VariableExpressionValueSource.


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