Typed runtime for variable binding target. More...
#include <kanzi/core.ui/binding/typed_variable_binding_target_runtime.hpp>
Public Member Functions | |
| bool | hasValue () const |
| Indicates whether the value has been set. | |
| bool | writeToVariant (Variant &value) |
| Writes the contents of this target runtime to the given variant. | |
Public Member Functions inherited from kanzi::VariableBindingTargetRuntime | |
| 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 typed variable binding target runtime. | |
Static Public Member Functions inherited from kanzi::VariableBindingTargetRuntime | |
| static BindingTargetRuntimePtr | create (AbstractPropertyType propertyType) |
| Creates a manual binding target runtime. | |
Protected Attributes | |
| optional< T > | m_value |
| Storage for the binding result. | |
Protected Attributes inherited from kanzi::VariableBindingTargetRuntime | |
| 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). | |
Additional Inherited Members | |
Public Types inherited from kanzi::VariableBindingTargetRuntime | |
| using | VariableSourceContainer |
| Container for variable sources. | |
Public Types inherited from kanzi::BindingTargetRuntime | |
| using | BindingProcessorRuntimeConstIterator |
| Binding processor iterator type. | |
| using | BindingProcessorRuntimeContainer |
| Binding processor container type. | |
Typed runtime for variable binding target.
|
inlineexplicitprotected |
Constructor.
| propertyType | Target property type. |
|
inlinestatic |
Creates a typed variable binding target runtime.
| propertyType | Target property type. |
|
inline |
Indicates whether the value has been set.
|
inline |
Writes the contents of this target runtime to the given variant.
| value | Value to write to. |
|
inlineprotected |
Notify connected source runtimes.
Kanzi calls this function after the variable binding target has been written.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::writeOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
protected |
Storage for the binding result.