Variable binding target runtime. More...
#include <kanzi/core.ui/binding/variable_binding_target_runtime.hpp>
Public Types | |
using | VariableSourceContainer |
Container for variable sources. | |
Public Types inherited from kanzi::BindingTargetRuntime | |
using | BindingProcessorRuntimeConstIterator |
Binding processor iterator type. | |
using | BindingProcessorRuntimeContainer |
Binding processor container type. | |
Public Member Functions | |
void | addVariableSource (AbstractBindingVariableSource &sourceRuntime) |
Adds a variable binding source runtime. | |
AbstractPropertyType | getPropertyType () const |
Gets property type. | |
AbstractBindingVariableSource * | removeLastVariableSource () |
Removes the last variable source listening on this target. | |
void | removeSourceRuntime (AbstractBindingVariableSource &sourceRuntime) |
Removes a variable binding source runtime. | |
virtual | ~VariableBindingTargetRuntime () |
Destructor. | |
Public Member Functions inherited from kanzi::BindingTargetRuntime | |
void | attachForRead () |
Attaches the binding target runtime for reading. | |
void | attachForWrite () |
Attaches the binding target runtime for writing. | |
BindingProcessorRuntimeConstIterator | beginProcessorRuntimes () const |
Gets an iterator to the beginning of binding processor runtimes. | |
void | createBindingProcessorsRuntimes (const AbstractBinding &binding) |
Creates a processor runtime for each BindingProcessor held by the binding parameter. | |
void | detach () |
Detaches binding target runtime. | |
BindingProcessorRuntimeConstIterator | endProcessorRuntimes () const |
Gets an iterator to the end of binding processor runtimes. | |
AbstractBindingRuntime * | getBindingRuntime () const |
Gets the binding runtime. | |
BindingLookupContext & | getLookupContext () const |
Gets the lookup context. | |
bool | isConnected () |
Indicates whether this source is connected. | |
bool | read (Variant &value) |
Reads a value from the binding target. | |
void | setBindingRuntime (AbstractBindingRuntime &bindingRuntime) |
Sets the binding runtime. | |
bool | write (const Variant &value) |
Writes a value to the binding target. | |
virtual | ~BindingTargetRuntime ()=default |
Destructor. | |
Static Public Member Functions | |
static BindingTargetRuntimePtr | create (AbstractPropertyType propertyType) |
Creates a manual binding target runtime. | |
Protected Member Functions | |
void | attachForReadOverride () override |
BindingTargetRuntime::attachForReadOverride() implementation. | |
void | attachForWriteOverride () override |
BindingTargetRuntime::attachForWriteOverride() implementation. | |
void | detachOverride () override |
BindingTargetRuntime::detachOverride() implementation. | |
bool | isConnectedOverride () override |
BindingTargetRuntime::isConnectedOverride() implementation. | |
bool | readOverride (Variant &value) override |
BindingTargetRuntime::readOverride() implementation. | |
VariableBindingTargetRuntime (AbstractPropertyType propertyType) | |
Constructor. | |
Protected Member Functions inherited from kanzi::BindingTargetRuntime | |
BindingTargetRuntime ()=default | |
Constructor. | |
virtual bool | writeOverride (const Variant &value)=0 |
Implementation-dependent write. | |
Protected Attributes | |
VariableBindingHost * | m_host |
Variable binding host connected to. | |
AbstractPropertyType | m_propertyType |
Property type written. | |
vector< AbstractBindingVariableSource * > | m_sourceRuntimes |
Variable binding sources connected. | |
Protected Attributes inherited from kanzi::BindingTargetRuntime | |
AbstractBindingRuntime * | m_bindingRuntime |
Abstract binding runtime for this target. | |
BindingProcessorRuntimeContainer | m_processorRuntimes |
Binding processors runtimes (for the target, backward direction). | |
Variable binding target runtime.
VariableBindingTargetRuntime holds the result of a binding operation as a readable variable.
VariableBindingTargetRuntime is intended to be used with a specific lookup in a binding host that is not a PropertyObject. This enables storing binding results without the overhead of PropertyObject interface.
There is no base value to modify, so VariableBindingTarget cannot write into a property field.
Container for variable sources.
|
virtual |
Destructor.
|
explicitprotected |
Constructor.
propertyType | Target property type. |
|
static |
Creates a manual binding target runtime.
propertyType | Target property type. |
|
inline |
Gets property type.
Required by inheriting classes.
void kanzi::VariableBindingTargetRuntime::addVariableSource | ( | AbstractBindingVariableSource & | sourceRuntime | ) |
Adds a variable binding source runtime.
Variable binding source runtimes are notified when the binding target is written.
sourceRuntime | Source runtime to add. |
void kanzi::VariableBindingTargetRuntime::removeSourceRuntime | ( | AbstractBindingVariableSource & | sourceRuntime | ) |
Removes a variable binding source runtime.
sourceRuntime | Source runtime to remove. |
AbstractBindingVariableSource * kanzi::VariableBindingTargetRuntime::removeLastVariableSource | ( | ) |
Removes the last variable source listening on this target.
|
overrideprotectedvirtual |
BindingTargetRuntime::attachForReadOverride() implementation.
Reimplemented from kanzi::BindingTargetRuntime.
|
overrideprotectedvirtual |
BindingTargetRuntime::attachForWriteOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
overrideprotectedvirtual |
BindingTargetRuntime::detachOverride() implementation.
Implements kanzi::BindingTargetRuntime.
BindingTargetRuntime::readOverride() implementation.
Reimplemented from kanzi::BindingTargetRuntime.
|
overrideprotectedvirtual |
BindingTargetRuntime::isConnectedOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
protected |
Property type written.
|
protected |
Variable binding host connected to.
|
protected |
Variable binding sources connected.