Kanzi 3.9.10
kanzi::DataSourceExpressionValueSourceRuntime Class Reference

Runtime for object property expression value source. More...

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

Inheritance diagram for kanzi::DataSourceExpressionValueSourceRuntime:
[legend]

Public Member Functions

 ~DataSourceExpressionValueSourceRuntime () override
 Destructor.
 
- Public Member Functions inherited from kanzi::AbstractExpressionValueSourceRuntime
void attach ()
 Attaches this source.
 
void detach ()
 Detaches this source.
 
VariantgetRegister ()
 Gets the variant from this value source.
 
const VariantgetRegister () const
 Gets the variant from this value source.
 
virtual ~AbstractExpressionValueSourceRuntime ()
 Destructor.
 

Static Public Member Functions

static AbstractExpressionValueSourceRuntimePtr create (const DataSourceExpressionValueSource &source, ExpressionBindingSourceRuntime &host)
 Creates a new data source expression value source runtime.
 

Protected Member Functions

void attachOverride () override
 AbstractExpressionValueSource::attachOverride() implementation.
 
 DataSourceExpressionValueSourceRuntime (const DataSourceExpressionValueSource &source, ExpressionBindingSourceRuntime &host)
 Constructor.
 
void detachOverride () override
 AbstractExpressionValueSource::detachOverride() implementation.
 
BindingLookupContextgetLookupContext ()
 Gets the binding lookup context.
 
string getPath ()
 Gets the data object path.
 
void localPropertyChange () override
 ObjectPropertyListenerImpl::localPropertyChange() implementation.
 
void onDataChanged ()
 Called when data source changes.
 
void onDataObjectChanged ()
 Called when data object within data source changes.
 
- Protected Member Functions inherited from kanzi::AbstractExpressionValueSourceRuntime
 AbstractExpressionValueSourceRuntime (ExpressionBindingSourceRuntime &host)
 Constructor.
 
- Protected Member Functions inherited from kanzi::ObjectPropertyListenerImpl< ResourceSharedPtr, PropertyObjectWeakPtr, PropertyObjectSharedPtr >
void attachLocalPropertyListener (PropertyObjectSharedPtr object, AbstractPropertyType propertyType)
 Installs local property listener.
 
void clearLocalPropertyListener ()
 Clears the property listener object.
 
void detachLocalPropertyListener (AbstractPropertyType propertyType)
 Uninstalls local property listener.
 
PropertyObjectSharedPtr getLocalPropertyListenerObject () const
 Gets the property object with a local property listener installed.
 
bool isLocalPropertyListenerInstalled () const
 Tells whether a local property listener has been installed.
 
 ObjectPropertyListenerImpl ()=default
 Constructor.
 
 ~ObjectPropertyListenerImpl ()
 Destructor.
 

Protected Attributes

weak_ptr< DataContextm_dataContext
 Data context connected to.
 
weak_ptr< DataObjectm_dataObject
 Data object connected to.
 
DataObject::ModifiedSubscriptionToken m_objectSubscription
 Token for data object subscription.
 
const DataSourceExpressionValueSourcem_source
 Create info containing settings for this source.
 
DataSource::ModifiedSubscriptionToken m_sourceSubscription
 Token for data object subscription.
 
- Protected Attributes inherited from kanzi::AbstractExpressionValueSourceRuntime
Variant m_cachedValue
 Cached value stored.
 
ExpressionBindingSourceRuntimem_host
 Host multi binding source.
 
- Protected Attributes inherited from kanzi::ObjectPropertyListenerImpl< ResourceSharedPtr, PropertyObjectWeakPtr, PropertyObjectSharedPtr >
PropertyObjectWeakPtr m_localPropertyListenerObject
 The object to which the local property listener has been installed.
 

Additional Inherited Members

- Static Protected Member Functions inherited from kanzi::ObjectPropertyListenerImpl< ResourceSharedPtr, PropertyObjectWeakPtr, PropertyObjectSharedPtr >
static void localPropertyChangeCallback (PropertyObject &, const ResourceSharedPtr &, PropertyNotificationReason reason, void *userData)
 Property change callback for object property.
 

Detailed Description

Runtime for object property expression value source.

Since
Kanzi 3.7.0

Constructor & Destructor Documentation

◆ ~DataSourceExpressionValueSourceRuntime()

kanzi::DataSourceExpressionValueSourceRuntime::~DataSourceExpressionValueSourceRuntime ( )
inlineoverride

Destructor.

◆ DataSourceExpressionValueSourceRuntime()

kanzi::DataSourceExpressionValueSourceRuntime::DataSourceExpressionValueSourceRuntime ( const DataSourceExpressionValueSource & source,
ExpressionBindingSourceRuntime & host )
inlineprotected

Constructor.

Parameters
sourceSource for this value source runtime.
hostHost expression binding source runtime.

Member Function Documentation

◆ create()

static AbstractExpressionValueSourceRuntimePtr kanzi::DataSourceExpressionValueSourceRuntime::create ( const DataSourceExpressionValueSource & source,
ExpressionBindingSourceRuntime & host )
static

Creates a new data source expression value source runtime.

Parameters
sourceData source for this value source runtime.
hostHost expression binding source runtime.

◆ getLookupContext()

BindingLookupContext & kanzi::DataSourceExpressionValueSourceRuntime::getLookupContext ( )
protected

Gets the binding lookup context.

Returns
Reference to binding lookup context.

◆ getPath()

string kanzi::DataSourceExpressionValueSourceRuntime::getPath ( )
protected

Gets the data object path.

Returns
Path to data object.

◆ onDataChanged()

void kanzi::DataSourceExpressionValueSourceRuntime::onDataChanged ( )
protected

Called when data source changes.

◆ onDataObjectChanged()

void kanzi::DataSourceExpressionValueSourceRuntime::onDataObjectChanged ( )
protected

Called when data object within data source changes.

◆ attachOverride()

void kanzi::DataSourceExpressionValueSourceRuntime::attachOverride ( )
overrideprotectedvirtual

AbstractExpressionValueSource::attachOverride() implementation.

Implements kanzi::AbstractExpressionValueSourceRuntime.

◆ detachOverride()

void kanzi::DataSourceExpressionValueSourceRuntime::detachOverride ( )
overrideprotectedvirtual

AbstractExpressionValueSource::detachOverride() implementation.

Implements kanzi::AbstractExpressionValueSourceRuntime.

◆ localPropertyChange()

void kanzi::DataSourceExpressionValueSourceRuntime::localPropertyChange ( )
overrideprotectedvirtual

Member Data Documentation

◆ m_dataObject

weak_ptr<DataObject> kanzi::DataSourceExpressionValueSourceRuntime::m_dataObject
protected

Data object connected to.

◆ m_dataContext

weak_ptr<DataContext> kanzi::DataSourceExpressionValueSourceRuntime::m_dataContext
protected

Data context connected to.

◆ m_sourceSubscription

DataSource::ModifiedSubscriptionToken kanzi::DataSourceExpressionValueSourceRuntime::m_sourceSubscription
protected

Token for data object subscription.

◆ m_objectSubscription

DataObject::ModifiedSubscriptionToken kanzi::DataSourceExpressionValueSourceRuntime::m_objectSubscription
protected

Token for data object subscription.

◆ m_source

const DataSourceExpressionValueSource& kanzi::DataSourceExpressionValueSourceRuntime::m_source
protected

Create info containing settings for this source.


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