Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::ObjectPropertyExpressionValueSource Class Reference

Object Property expression value source. More...

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

Inheritance diagram for kanzi::ObjectPropertyExpressionValueSource:
[legend]

Public Member Functions

string getPath () const
 Gets the source object path. More...
 
PropertyField getPropertyField () const
 Gets the source property field. More...
 
AbstractPropertyType getPropertyType () const
 Gets the source property type. More...
 
- Public Member Functions inherited from kanzi::AbstractExpressionValueSource
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...
 

Static Public Member Functions

static ObjectPropertyExpressionValueSourceSharedPtr create (string_view path, AbstractPropertyType propertyType, PropertyField field)
 Creates an object property expression value source. More...
 
static ObjectPropertyExpressionValueSourceSharedPtr create (string_view path, AbstractPropertyType propertyType)
 Creates an object property expression value source. More...
 

Protected Member Functions

BindingSourcePtr convertToBindingSourceOverride () override
 AbstractExpressionValueSource::convertToBindingSourceOverride() implementation. More...
 
AbstractExpressionValueSourceRuntimePtr createRuntimeOverride (ExpressionBindingSourceRuntime &host) override
 AbstractExpressionValueSource::createRuntimeOverride() implementation. More...
 
 ObjectPropertyExpressionValueSource (string_view path, AbstractPropertyType propertyType, PropertyField field)
 Constructor. More...
 
- Protected Member Functions inherited from kanzi::AbstractExpressionValueSource
 AbstractExpressionValueSource ()
 Constructor. More...
 

Protected Attributes

PropertyField m_field
 Property field to read when property is changed. More...
 
string m_path
 Path to object to listen to. More...
 
AbstractPropertyType m_propertyType
 Property type to listen to. More...
 

Detailed Description

Object Property expression value source.

Resolves an object by path and reads a property.

Since
Kanzi 3.7.0

Constructor & Destructor Documentation

kanzi::ObjectPropertyExpressionValueSource::ObjectPropertyExpressionValueSource ( string_view  path,
AbstractPropertyType  propertyType,
PropertyField  field 
)
inlineprotected

Constructor.

Parameters
pathPath to object.
propertyTypeProperty type to listen to.
fieldProperty field to read.

Member Function Documentation

static ObjectPropertyExpressionValueSourceSharedPtr kanzi::ObjectPropertyExpressionValueSource::create ( string_view  path,
AbstractPropertyType  propertyType,
PropertyField  field 
)
static

Creates an object property expression value source.

Parameters
pathPath to object.
propertyTypeProperty type to listen to.
fieldProperty field to read.
Returns
Newly created object property expression value source.
static ObjectPropertyExpressionValueSourceSharedPtr kanzi::ObjectPropertyExpressionValueSource::create ( string_view  path,
AbstractPropertyType  propertyType 
)
inlinestatic

Creates an object property expression value source.

Uses the whole property.

Parameters
pathPath to object.
propertyTypeProperty type to listen to.
Returns
Newly created object property expression value source.
string kanzi::ObjectPropertyExpressionValueSource::getPath ( ) const
inline

Gets the source object path.

Returns
Path to object.
AbstractPropertyType kanzi::ObjectPropertyExpressionValueSource::getPropertyType ( ) const
inline

Gets the source property type.

Returns
Property type.
PropertyField kanzi::ObjectPropertyExpressionValueSource::getPropertyField ( ) const
inline

Gets the source property field.

Returns
Property field.
AbstractExpressionValueSourceRuntimePtr kanzi::ObjectPropertyExpressionValueSource::createRuntimeOverride ( ExpressionBindingSourceRuntime host)
overrideprotectedvirtual
BindingSourcePtr kanzi::ObjectPropertyExpressionValueSource::convertToBindingSourceOverride ( )
overrideprotectedvirtual

Member Data Documentation

string kanzi::ObjectPropertyExpressionValueSource::m_path
protected

Path to object to listen to.

AbstractPropertyType kanzi::ObjectPropertyExpressionValueSource::m_propertyType
protected

Property type to listen to.

PropertyField kanzi::ObjectPropertyExpressionValueSource::m_field
protected

Property field to read when property is changed.


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