Kanzi  3.9.9
Kanzi Engine C++ API
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. More...
 
- Public Member Functions inherited from kanzi::AbstractExpressionValueSourceRuntime
void attach ()
 Attaches this source. More...
 
void detach ()
 Detaches this source. More...
 
VariantgetRegister ()
 Gets the variant from this value source. More...
 
const VariantgetRegister () const
 Gets the variant from this value source. More...
 
virtual ~AbstractExpressionValueSourceRuntime ()
 Destructor. More...
 

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

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. More...
 

Detailed Description

Runtime for object property expression value source.

Since
Kanzi 3.7.0

Constructor & Destructor Documentation

kanzi::DataSourceExpressionValueSourceRuntime::~DataSourceExpressionValueSourceRuntime ( )
inlineoverride

Destructor.

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

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.
BindingLookupContext& kanzi::DataSourceExpressionValueSourceRuntime::getLookupContext ( )
protected

Gets the binding lookup context.

Returns
Reference to binding lookup context.
string kanzi::DataSourceExpressionValueSourceRuntime::getPath ( )
protected

Gets the data object path.

Returns
Path to data object.
void kanzi::DataSourceExpressionValueSourceRuntime::onDataChanged ( )
protected

Called when data source changes.

void kanzi::DataSourceExpressionValueSourceRuntime::onDataObjectChanged ( )
protected

Called when data object within data source changes.

void kanzi::DataSourceExpressionValueSourceRuntime::attachOverride ( )
overrideprotectedvirtual

AbstractExpressionValueSource::attachOverride() implementation.

Implements kanzi::AbstractExpressionValueSourceRuntime.

void kanzi::DataSourceExpressionValueSourceRuntime::detachOverride ( )
overrideprotectedvirtual

AbstractExpressionValueSource::detachOverride() implementation.

Implements kanzi::AbstractExpressionValueSourceRuntime.

void kanzi::DataSourceExpressionValueSourceRuntime::localPropertyChange ( )
overrideprotectedvirtual

Member Data Documentation

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

Data object connected to.

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

Data context connected to.

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

Token for data object subscription.

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

Token for data object subscription.

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: