Holds the runtime state of a ResourceBindingProcessor. More...
#include <kanzi/core.ui/binding/resource_binding_processor_runtime.hpp>
Public Member Functions | |
void | onResourceChange () |
Function executed on resource change. More... | |
Public Member Functions inherited from kanzi::BindingProcessorRuntime | |
void | attach (AbstractBindingRuntime &bindingRuntime) |
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... | |
Static Public Member Functions | |
static unique_ptr< ResourceBindingProcessorRuntime > | create (ResourceBindingProcessor &processor) |
Creates a ResourceBindingProcessorRuntime. More... | |
Static Public Member Functions inherited from kanzi::InstructionBindingProcessorRuntime | |
static unique_ptr< InstructionBindingProcessorRuntime > | create (InstructionBindingProcessor &processor) |
Creates an InstructionBindingProcessorRuntime. More... | |
Protected Types | |
using | ResourceListener = ContentReference< Resource > |
Resource listener type. More... | |
using | ResourceListenerPtr = unique_ptr< ResourceListener > |
Resource listener unique pointer type. More... | |
Protected Member Functions | |
void | attachOverride (AbstractBindingRuntime &bindingRuntime) |
BindingProcessorRuntime::attachOverride() implementation. More... | |
void | detachOverride () |
BindingProcessorRuntime::detachOverride() implementation. More... | |
ResourceBindingProcessorRuntime (ResourceBindingProcessor &processor) | |
Constructor. More... | |
bool | validateOverride (Variant &value) |
BindingProcessorRuntime::validateOverride() implementation. More... | |
Protected Member Functions inherited from kanzi::InstructionBindingProcessorRuntime | |
InstructionBindingProcessor & | getInstructionBindingProcessor () const |
Casts BindingProcess into InstructionBindingProcessor. More... | |
InstructionBindingProcessorRuntime (InstructionBindingProcessor &processor) | |
Constructor. More... | |
Protected Member Functions inherited from kanzi::BindingProcessorRuntime | |
BindingProcessorRuntime (BindingProcessor &processor) | |
Constructor. More... | |
Protected Attributes | |
ResourceListenerPtr | m_listener |
Listener for resource changes. More... | |
NodeWeakPtr | m_node |
Node attached to (for recreating the listener). More... | |
Protected Attributes inherited from kanzi::InstructionBindingProcessorRuntime | |
Variant * | m_inputRegister1 |
Attached input register. More... | |
Variant * | m_inputRegister2 |
Attached input register. More... | |
Variant * | m_inputRegister3 |
Attached input register. More... | |
Variant * | m_outputRegister |
Attached output register. More... | |
Protected Attributes inherited from kanzi::BindingProcessorRuntime | |
AbstractBindingRuntime * | m_bindingRuntime |
The binding runtime containing the BindingProcessorRuntime. More... | |
BindingProcessor & | m_processor |
The processor whose runtime state is held by the BindingProcessorRuntime. More... | |
Holds the runtime state of a ResourceBindingProcessor.
|
protected |
Resource listener type.
|
protected |
Resource listener unique pointer type.
|
explicitprotected |
Constructor.
processor | The ResourceBindingProcessor who's runtime state is held by the created ResourceBindingProcessorRuntime. |
|
static |
Creates a ResourceBindingProcessorRuntime.
processor | The ResourceBindingProcessor who's runtime state is held by the created ResourceBindingProcessorRuntime. |
void kanzi::ResourceBindingProcessorRuntime::onResourceChange | ( | ) |
Function executed on resource change.
When Kanzi executes this function, it also re-executes the binding.
|
protectedvirtual |
BindingProcessorRuntime::attachOverride() implementation.
Reimplemented from kanzi::InstructionBindingProcessorRuntime.
|
protectedvirtual |
BindingProcessorRuntime::detachOverride() implementation.
Reimplemented from kanzi::InstructionBindingProcessorRuntime.
|
protectedvirtual |
BindingProcessorRuntime::validateOverride() implementation.
Reimplemented from kanzi::InstructionBindingProcessorRuntime.
|
protected |
Node attached to (for recreating the listener).
|
protected |
Listener for resource changes.