Kanzi 3.9.10
kanzi::ToSourceBindingRuntime Class Reference

Runtime for ToSourceBinding. More...

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

Inheritance diagram for kanzi::ToSourceBindingRuntime:
[legend]

Public Member Functions

BindingSourceRuntimegetPushSourceRuntime () const
 Gets the runtime for the push source.
 
- Public Member Functions inherited from kanzi::AbstractBindingRuntime
void attach ()
 Attach the binding.
 
void detach ()
 Detaches the binding.
 
void detachIfAttachedOrAttaching ()
 Detaches the binding if it is attaching or attached.
 
AbstractBindingSharedPtr getBinding () const
 Returns the binding associated with this binding runtime.
 
BindingLookupContextgetLookupContext () const
 Gets the lookup context.
 
shared_ptr< voidgetOwner () const
 Gets the owner.
 
BindingSourceRuntimegetSourceRuntime () const
 Gets the source runtime.
 
BindingTargetRuntimegetTargetRuntime () const
 Gets the target runtime.
 
bool isAttached () const
 Indicates whether this binding runtime has been attached.
 
bool isAttaching () const
 Indicates whether this binding runtime is being attached.
 
bool isConnected ()
 Indicates whether this binding runtime is connected.
 
bool isDetached () const
 Indicates whether this binding runtime is detached.
 
bool isDetaching () const
 Indicates whether this binding runtime is being detached.
 
bool isRemoved () const
 Gets whether the binding runtime has been removed from the binding host.
 
void notifySourceChanged ()
 Called when binding source has changed.
 
void notifyTargetChanged ()
 Called when binding target has changed.
 
void onRemoved ()
 Called when binding is being removed from where it has been installed.
 
void removeFromHost ()
 Removes the binding runtime from the binding host.
 
void setHost (BindingHostConceptSharedPtr hostObject)
 Sets the binding host object in which the binding runtime is hosted.
 
void setOwner (shared_ptr< void > owner)
 Set the owner.
 
bool update ()
 Execute the binding.
 
virtual ~AbstractBindingRuntime ()
 Destructor.
 

Static Public Member Functions

static ToSourceBindingRuntimeSharedPtr create (ToSourceBindingSharedPtr toSourceBinding, BindingLookupContextPtr lookupContext, BindingSourceRuntimePtr sourceRuntime, BindingSourceRuntimePtr pushSourceRuntime, BindingTargetRuntimePtr targetRuntime)
 Creates a To Source binding runtime.
 

Protected Member Functions

void attachOverride () override
 AbstractBindingRuntime::attachOverride() implementation.
 
void detachOverride () override
 AbstractBindingRuntime::detachOverride() implementation.
 
bool isConnectedOverride () override
 AbstractBindingRuntime::isConnectedOverride() implementation.
 
void notifySourceChangedOverride () override
 AbstractBindingRuntime::notifySourceChangedOverride() implementation.
 
void notifyTargetChangedOverride () override
 AbstractBindingRuntime::notifyTargetChangedOverride() implementation.
 
 ToSourceBindingRuntime (ToSourceBindingSharedPtr toSourceBinding, BindingLookupContextPtr lookupContext, BindingSourceRuntimePtr sourceRuntime, BindingSourceRuntimePtr pushSourceRuntime, BindingTargetRuntimePtr targetRuntime)
 Constructor.
 
bool updateOverride () override
 AbstractBindingRuntime::updateOverride() implementation.
 
bool writeToSource (const Variant &value) const
 Writes to push source.
 
- Protected Member Functions inherited from kanzi::BindingBaseRuntime
 BindingBaseRuntime (AbstractBindingSharedPtr binding, BindingLookupContextPtr lookupContext, BindingSourceRuntimePtr sourceRuntime, BindingTargetRuntimePtr targetRuntime)
 Constructor.
 
- Protected Member Functions inherited from kanzi::AbstractBindingRuntime
 AbstractBindingRuntime (AbstractBindingSharedPtr binding, BindingLookupContextPtr lookupContext, BindingSourceRuntimePtr sourceRuntime, BindingTargetRuntimePtr targetRuntime)
 Constructor.
 
bool readFromSource (Variant &value)
 Read from source and execute forward validators.
 
bool readFromTarget (Variant &value)
 Reads from target and executes reverse validators.
 
bool writeToSource (const Variant &value) const
 Writes to source.
 
bool writeToTarget (const Variant &value)
 Write to target.
 

Protected Attributes

BindingSourceRuntimePtr m_pushSourceRuntime
 Runtime for push source.
 
- Protected Attributes inherited from kanzi::BindingBaseRuntime
bool m_updateInProgress
 Flag for update being in progress.
 
- Protected Attributes inherited from kanzi::AbstractBindingRuntime
AttachmentState m_attachmentState
 Current binding runtime state.
 
AbstractBindingSharedPtr m_binding
 Associated binding.
 
BindingHostConceptWeakPtr m_bindingHost
 The binding host object in which the binding runtime is hosted.
 
BindingLookupContextPtr m_lookupContext
 
weak_ptr< voidm_owner
 Owner for tagging the runtime.
 
BindingSourceRuntimePtr m_sourceRuntime
 Runtime for source.
 
BindingTargetRuntimePtr m_targetRuntime
 Runtime for target.
 

Additional Inherited Members

- Public Types inherited from kanzi::AbstractBindingRuntime
enum  AttachmentState {
  Detached , Detaching , Attaching , Attached ,
  Removed
}
 Attachment state for keeping track current status. More...
 

Detailed Description

Runtime for ToSourceBinding.

See also
AbstractBinding
Since
Kanzi 3.7.0

Constructor & Destructor Documentation

◆ ToSourceBindingRuntime()

kanzi::ToSourceBindingRuntime::ToSourceBindingRuntime ( ToSourceBindingSharedPtr toSourceBinding,
BindingLookupContextPtr lookupContext,
BindingSourceRuntimePtr sourceRuntime,
BindingSourceRuntimePtr pushSourceRuntime,
BindingTargetRuntimePtr targetRuntime )
explicitprotected

Constructor.

Parameters
toSourceBindingThe To Source binding that created this runtime.
lookupContextBinding lookup context.
sourceRuntimeRuntime created for binding source.
pushSourceRuntimeRuntime for push source.
targetRuntimeRuntime created for binding target.
Since
Kanzi 3.9.6 Added BindingLookupContextPtr.

Member Function Documentation

◆ create()

static ToSourceBindingRuntimeSharedPtr kanzi::ToSourceBindingRuntime::create ( ToSourceBindingSharedPtr toSourceBinding,
BindingLookupContextPtr lookupContext,
BindingSourceRuntimePtr sourceRuntime,
BindingSourceRuntimePtr pushSourceRuntime,
BindingTargetRuntimePtr targetRuntime )
static

Creates a To Source binding runtime.

Parameters
toSourceBindingHost binding.
lookupContextBinding lookup context.
sourceRuntimeBinding source runtime.
pushSourceRuntimeRuntime for push source.
targetRuntimeBinding target runtime.
Returns
The created runtime for a To Source binding.
Since
Kanzi 3.9.6 Added BindingLookupContextPtr.

◆ getPushSourceRuntime()

BindingSourceRuntime * kanzi::ToSourceBindingRuntime::getPushSourceRuntime ( ) const
inline

Gets the runtime for the push source.

Returns
Pointer to push source runtime.

◆ writeToSource()

bool kanzi::ToSourceBindingRuntime::writeToSource ( const Variant & value) const
protected

Writes to push source.

Parameters
valueThe value to write.
Returns
If the write succeeds, true, otherwise false.

◆ attachOverride()

void kanzi::ToSourceBindingRuntime::attachOverride ( )
overrideprotectedvirtual

◆ detachOverride()

void kanzi::ToSourceBindingRuntime::detachOverride ( )
overrideprotectedvirtual

◆ updateOverride()

bool kanzi::ToSourceBindingRuntime::updateOverride ( )
overrideprotectedvirtual

◆ notifySourceChangedOverride()

void kanzi::ToSourceBindingRuntime::notifySourceChangedOverride ( )
overrideprotectedvirtual

◆ notifyTargetChangedOverride()

void kanzi::ToSourceBindingRuntime::notifyTargetChangedOverride ( )
overrideprotectedvirtual

◆ isConnectedOverride()

bool kanzi::ToSourceBindingRuntime::isConnectedOverride ( )
overrideprotectedvirtual

Member Data Documentation

◆ m_pushSourceRuntime

BindingSourceRuntimePtr kanzi::ToSourceBindingRuntime::m_pushSourceRuntime
protected

Runtime for push source.


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