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, BindingLookupContext &lookupContext) |
Called when the binding source or target runtime containing the processor runtime is being attached. More... | |
void | detach () |
Called when the binding source or target runtime containing the processor runtime is being detached. More... | |
AbstractBindingRuntime * | getBindingRuntime () const |
Gets the binding runtime. More... | |
BindingProcessor & | getProcessor () const |
Gets the binding processor. More... | |
bool | validate (Variant &value) |
Returns true if the BindingProcessorRuntime has a valid state. More... | |
virtual | ~BindingProcessorRuntime ()=default |
Destructor. More... | |
Protected Member Functions | |
virtual void | attachOverride (AbstractBindingRuntime &bindingRuntime, BindingLookupContext &lookupContext) |
Implementation-specific attach of the binding processor runtime. More... | |
BindingProcessorRuntime (BindingProcessor &processor) | |
Constructor. More... | |
virtual void | detachOverride () |
Implementation-specific detach of the binding processor runtime. More... | |
virtual bool | validateOverride (Variant &value)=0 |
Called when validate is called. More... | |
Protected Attributes | |
AbstractBindingRuntime * | m_bindingRuntime |
The binding runtime containing the BindingProcessorRuntime. More... | |
BindingLookupContext * | m_lookupContext |
Binding lookup context for the processor. More... | |
BindingProcessor & | m_processor |
The processor whose runtime state is held by the BindingProcessorRuntime. More... | |
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, |
BindingLookupContext & | lookupContext | ||
) |
void kanzi::BindingProcessorRuntime::detach | ( | ) |
Called when the binding source or target runtime containing the processor runtime is being detached.
bool kanzi::BindingProcessorRuntime::validate | ( | Variant & | value | ) |
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. |
lookupContext | Binding lookup context for the source or target runtime. |
Reimplemented in kanzi::ResourceBindingProcessorRuntime, kanzi::ConstraintBindingProcessorRuntime< T >, kanzi::AnimationBindingProcessorRuntime, and kanzi::InstructionBindingProcessorRuntime.
|
protectedvirtual |
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::ConstraintBindingProcessorRuntime< T >, kanzi::ResourceBindingProcessorRuntime, kanzi::AnimationBindingProcessorRuntime, kanzi::InstructionBindingProcessorRuntime, and kanzi::RangeBindingProcessorRuntime.
|
protectedpure virtual |
Called when validate is called.
Classes inheriting from BindingProcessorRuntime should implement this method.
Implemented in kanzi::ConstraintBindingProcessorRuntime< T >, kanzi::ResourceBindingProcessorRuntime, kanzi::AnimationBindingProcessorRuntime, kanzi::InstructionBindingProcessorRuntime, kanzi::CallbackProcessorRuntime, kanzi::RangeBindingProcessorRuntime, and kanzi::RangeAccumulateBindingProcessorRuntime.
|
protected |
The binding runtime containing the BindingProcessorRuntime.
|
protected |
The processor whose runtime state is held by the BindingProcessorRuntime.
|
protected |
Binding lookup context for the processor.