Holds the runtime state of a binding processor. More...
#include <kanzi/core.ui/binding/binding_processor_runtime.hpp>
Public Member Functions | |
void | attach (AbstractBindingRuntime &bindingRuntime) |
Called when the binding source or target runtime containing the processor runtime is being attached. | |
void | detach () |
Called when the binding source or target runtime containing the processor runtime is being detached. | |
AbstractBindingRuntime * | getBindingRuntime () const |
Gets the binding runtime. | |
BindingProcessor & | getProcessor () const |
Gets the binding processor. | |
bool | validate (Variant &value) |
Returns true if the BindingProcessorRuntime has a valid state. | |
virtual | ~BindingProcessorRuntime ()=default |
Destructor. | |
Protected Member Functions | |
virtual void | attachOverride (AbstractBindingRuntime &bindingRuntime) |
Implementation-specific attach of the binding processor runtime. | |
BindingProcessorRuntime (BindingProcessor &processor) | |
Constructor. | |
virtual void | detachOverride () |
Implementation-specific detach of the binding processor runtime. | |
virtual bool | validateOverride (Variant &value)=0 |
Called when validate is called. | |
Protected Attributes | |
AbstractBindingRuntime * | m_bindingRuntime |
The binding runtime containing the BindingProcessorRuntime. | |
BindingProcessor & | m_processor |
The processor whose runtime state is held by the BindingProcessorRuntime. | |
Holds the runtime state of a binding processor.
|
virtualdefault |
Destructor.
|
explicitprotected |
Constructor.
processor | The processor whose runtime state is held by the BindingProcessorRuntime. |
void kanzi::BindingProcessorRuntime::attach | ( | AbstractBindingRuntime & | bindingRuntime | ) |
Called when the binding source or target runtime containing the processor runtime is being attached.
bindingRuntime | Binding runtime being attached to. |
void kanzi::BindingProcessorRuntime::detach | ( | ) |
Called when the binding source or target runtime containing the processor runtime is being detached.
Returns true if the BindingProcessorRuntime has a valid state.
|
inline |
Gets the binding runtime.
|
inline |
Gets the binding processor.
|
protectedvirtual |
Implementation-specific attach of the binding processor runtime.
Called when the binding source or target runtime containing the processor runtime is being attached. Child classes should first call the parent class attachOverride().
bindingRuntime | Binding runtime being attached to. |
Reimplemented in kanzi::ResourceBindingProcessorRuntime, kanzi::AnimationBindingProcessorRuntime, kanzi::ConstraintBindingProcessorRuntime< T >, and kanzi::InstructionBindingProcessorRuntime.
Implementation-specific detach of the binding processor runtime.
Called when the binding source or target runtime containing the processor runtime is being detached. Child classes should call the parent class detachOverride() as last part of their execution.
Reimplemented in kanzi::ResourceBindingProcessorRuntime, kanzi::AnimationBindingProcessorRuntime, kanzi::ConstraintBindingProcessorRuntime< T >, kanzi::InstructionBindingProcessorRuntime, and kanzi::RangeBindingProcessorRuntime.
|
protectedpure virtual |
Called when validate is called.
Classes inheriting from BindingProcessorRuntime should implement this method.
Implemented in kanzi::ResourceBindingProcessorRuntime, kanzi::AnimationBindingProcessorRuntime, kanzi::CallbackProcessorRuntime, kanzi::ConstraintBindingProcessorRuntime< T >, kanzi::InstructionBindingProcessorRuntime, kanzi::RangeAccumulateBindingProcessorRuntime, and kanzi::RangeBindingProcessorRuntime.
|
protected |
The binding runtime containing the BindingProcessorRuntime.
|
protected |
The processor whose runtime state is held by the BindingProcessorRuntime.