Kanzi 3.9.11
kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T > Class Template Reference

Typed runtime for object property expression value source. More...

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

Inheritance diagram for kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >:
[legend]

Public Member Functions

 ~TypedObjectPropertyExpressionValueSourceRuntime () override
 Destructor.
 
- Public Member Functions inherited from kanzi::ObjectPropertyExpressionValueSourceRuntime
string getPath () const
 Gets source path.
 
PropertyField getPropertyField () const
 Gets property field.
 
AbstractPropertyType getPropertyType () const
 Gets property type.
 
- Public Member Functions inherited from kanzi::AbstractExpressionValueSourceRuntime
void attach ()
 Attaches this source.
 
void detach ()
 Detaches this source.
 
Variant & getRegister ()
 Gets the variant from this value source.
 
const Variant & getRegister () const
 Gets the variant from this value source.
 
virtual ~AbstractExpressionValueSourceRuntime ()
 Destructor.
 
- Public Member Functions inherited from kanzi::BindingLookupNotificationBase
void clearLocalNotificationFlag ()
 Clears local notification flag.
 
bool isGlobalNotificationInstalled () const
 Tells if this a global notification has been registered.
 
bool isLocalNotificationInstalled () const
 Tells if this a local notification has been registered.
 
void registerGlobalNotification (BindingLookupContext &lookupContext, string_view path)
 Installs a global notification listener.
 
void registerLocalNotification (BindingLookupContext &lookupContext, PropertyObject &object, string_view path)
 Installs a local notification listener.
 
void registerLocalNotification (BindingLookupContext &lookupContext, PropertyObject *object, string_view path)
 Installs a local notification listener.
 
void unregisterGlobalNotification (BindingLookupContext &lookupContext, string_view path)
 Uninstalls a global notification listener.
 
void unregisterLocalNotification (BindingLookupContext &lookupContext, PropertyObject &object, string_view path)
 Removes a local notification listener.
 
void unregisterLocalNotification (BindingLookupContext &lookupContext, PropertyObject *object, string_view path)
 Removes a local notification listener.
 
 ~BindingLookupNotificationBase ()
 Destructor.
 

Static Public Member Functions

static AbstractExpressionValueSourceRuntimePtr create (ObjectPropertyExpressionValueSource &valueSource, ExpressionBindingSourceRuntime &sourceRuntime)
 Create a typed object property expression value source runtime.
 

Protected Types

using ObjectPropertyListenerType
 Type name for object property listener.
 

Protected Member Functions

void attachOverride () override
 AbstractExpressionValueSource::attachOverride() implementation.
 
void detachOverride () override
 AbstractExpressionValueSource::detachOverride() implementation.
 
void localPropertyChange () override
 ObjectPropertyListenerImpl::localPropertyChange() implementation.
 
void onGlobalLookupNotification () override
 BindingLookupNotificationImpl::onGlobalLookupNotification() implementation.
 
void onLocalLookupNotification () override
 BindingLookupNotificationImpl::onLocalLookupNotification() implementation.
 
void readValue (const PropertyObject &object)
 Performs the value read for this source.
 
 TypedObjectPropertyExpressionValueSourceRuntime (ObjectPropertyExpressionValueSource &source, ExpressionBindingSourceRuntime &host)
 Constructor.
 
- Protected Member Functions inherited from kanzi::ObjectPropertyExpressionValueSourceRuntime
BindingLookupContext & getLookupContext ()
 Gets the binding lookup context.
 
 ObjectPropertyExpressionValueSourceRuntime (const ObjectPropertyExpressionValueSource &source, ExpressionBindingSourceRuntime &host)
 Constructor.
 
- Protected Member Functions inherited from kanzi::AbstractExpressionValueSourceRuntime
 AbstractExpressionValueSourceRuntime (ExpressionBindingSourceRuntime &host)
 Constructor.
 
- Protected Member Functions inherited from kanzi::BindingLookupNotificationBase
 BindingLookupNotificationBase ()
 Constructor.
 
- Protected Member Functions inherited from kanzi::ObjectPropertyListenerImpl< T, PropertyObject *, PropertyObject & >
void attachLocalPropertyListener (PropertyObject & object, AbstractPropertyType propertyType)
 Installs local property listener.
 
void clearLocalPropertyListener ()
 Clears the property listener object.
 
void detachLocalPropertyListener (AbstractPropertyType propertyType)
 Uninstalls local property listener.
 
PropertyObject & 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.
 

Additional Inherited Members

- Static Protected Member Functions inherited from kanzi::ObjectPropertyListenerImpl< T, PropertyObject *, PropertyObject & >
static void localPropertyChangeCallback (PropertyObject &, const T &, PropertyNotificationReason reason, void *userData)
 Property change callback for object property.
 
- Protected Attributes inherited from kanzi::ObjectPropertyExpressionValueSourceRuntime
PropertyObjectWeakPtr m_object
 Property object attached to.
 
const ObjectPropertyExpressionValueSource & m_source
 The Object Property expression value source of this runtime.
 
- Protected Attributes inherited from kanzi::AbstractExpressionValueSourceRuntime
Variant m_cachedValue
 Cached value stored.
 
ExpressionBindingSourceRuntime & m_host
 Host multi binding source.
 
- Protected Attributes inherited from kanzi::BindingLookupNotificationBase
bool m_globalNotificationInstalled
 Is the global notification listener installed?
 
bool m_localNotificationInstalled
 Is the local notification listener installed?
 
- Protected Attributes inherited from kanzi::ObjectPropertyListenerImpl< T, PropertyObject *, PropertyObject & >
PropertyObject * m_localPropertyListenerObject
 The object to which the local property listener has been installed.
 

Detailed Description

template<typename T>
class kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >

Typed runtime for object property expression value source.

Since
Kanzi 3.7.0

Member Typedef Documentation

◆ ObjectPropertyListenerType

template<typename T >
using kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >::ObjectPropertyListenerType
protected

Type name for object property listener.

Constructor & Destructor Documentation

◆ ~TypedObjectPropertyExpressionValueSourceRuntime()

◆ TypedObjectPropertyExpressionValueSourceRuntime()

template<typename T >
kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >::TypedObjectPropertyExpressionValueSourceRuntime ( ObjectPropertyExpressionValueSource & source,
ExpressionBindingSourceRuntime & host )
inlineexplicitprotected

Constructor.

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

Member Function Documentation

◆ create()

Create a typed object property expression value source runtime.

Parameters
valueSourceSource for this value source runtime.
sourceRuntimeHost expression binding source runtime.
Returns
The created value source runtime.

◆ readValue()

template<typename T >
void kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >::readValue ( const PropertyObject & object)
inlineprotected

Performs the value read for this source.

Parameters
objectObject to read from.

◆ attachOverride()

template<typename T >
void kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >::attachOverride ( )
inlineoverrideprotectedvirtual

AbstractExpressionValueSource::attachOverride() implementation.

Implements kanzi::AbstractExpressionValueSourceRuntime.

◆ detachOverride()

template<typename T >
void kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >::detachOverride ( )
inlineoverrideprotectedvirtual

AbstractExpressionValueSource::detachOverride() implementation.

Implements kanzi::AbstractExpressionValueSourceRuntime.

◆ onGlobalLookupNotification()

template<typename T >
void kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >::onGlobalLookupNotification ( )
inlineoverrideprotectedvirtual

BindingLookupNotificationImpl::onGlobalLookupNotification() implementation.

Implements kanzi::BindingLookupNotificationBase.

◆ onLocalLookupNotification()

template<typename T >
void kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >::onLocalLookupNotification ( )
inlineoverrideprotectedvirtual

BindingLookupNotificationImpl::onLocalLookupNotification() implementation.

Implements kanzi::BindingLookupNotificationBase.

◆ localPropertyChange()


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