Kanzi  3.9.4
Kanzi Engine API
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. More...
 
AbstractExpressionValueSourceRuntimePtr createRuntime (ExpressionBindingSourceRuntime &host)
 Creates a runtime for this expression value source. More...
 
virtual ~AbstractExpressionValueSource ()
 Destructor. More...
 

Protected Member Functions

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

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::ObjectPropertyExpressionValueSource, kanzi::VariableExpressionValueSource, kanzi::RenderPropertyExpressionValueSource, and kanzi::DataSourceExpressionValueSource.

◆ 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::ObjectPropertyExpressionValueSource, kanzi::VariableExpressionValueSource, kanzi::RenderPropertyExpressionValueSource, and kanzi::DataSourceExpressionValueSource.


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