Kanzi 3.9.10
kanzi::ResourceBindingProcessorRuntime Class Reference

Holds the runtime state of a ResourceBindingProcessor. More...

#include <kanzi/core.ui/binding/resource_binding_processor_runtime.hpp>

Inheritance diagram for kanzi::ResourceBindingProcessorRuntime:
[legend]

Public Member Functions

void onResourceChange ()
 Function executed on resource change.
 
- 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.
 
void detach ()
 Called when the binding source or target runtime containing the processor runtime is being detached.
 
AbstractBindingRuntimegetBindingRuntime () const
 Gets the binding runtime.
 
BindingProcessorgetProcessor () const
 Gets the binding processor.
 
bool validate (Variant &value)
 Returns true if the BindingProcessorRuntime has a valid state.
 
virtual ~BindingProcessorRuntime ()=default
 Destructor.
 

Static Public Member Functions

static unique_ptr< ResourceBindingProcessorRuntimecreate (ResourceBindingProcessor &processor)
 Creates a ResourceBindingProcessorRuntime.
 
- Static Public Member Functions inherited from kanzi::InstructionBindingProcessorRuntime
static unique_ptr< InstructionBindingProcessorRuntimecreate (InstructionBindingProcessor &processor)
 Creates an InstructionBindingProcessorRuntime.
 

Protected Types

using ResourceListener
 Resource listener type.
 
using ResourceListenerPtr
 Resource listener unique pointer type.
 

Protected Member Functions

void attachOverride (AbstractBindingRuntime &bindingRuntime)
 BindingProcessorRuntime::attachOverride() implementation.
 
void detachOverride ()
 BindingProcessorRuntime::detachOverride() implementation.
 
 ResourceBindingProcessorRuntime (ResourceBindingProcessor &processor)
 Constructor.
 
bool validateOverride (Variant &value)
 BindingProcessorRuntime::validateOverride() implementation.
 
- Protected Member Functions inherited from kanzi::InstructionBindingProcessorRuntime
InstructionBindingProcessorgetInstructionBindingProcessor () const
 Casts BindingProcess into InstructionBindingProcessor.
 
 InstructionBindingProcessorRuntime (InstructionBindingProcessor &processor)
 Constructor.
 
- Protected Member Functions inherited from kanzi::BindingProcessorRuntime
 BindingProcessorRuntime (BindingProcessor &processor)
 Constructor.
 

Protected Attributes

ResourceListenerPtr m_listener
 Listener for resource changes.
 
NodeWeakPtr m_node
 Node attached to (for recreating the listener).
 
- Protected Attributes inherited from kanzi::InstructionBindingProcessorRuntime
Variantm_inputRegister1
 Attached input register.
 
Variantm_inputRegister2
 Attached input register.
 
Variantm_inputRegister3
 Attached input register.
 
Variantm_outputRegister
 Attached output register.
 
- Protected Attributes inherited from kanzi::BindingProcessorRuntime
AbstractBindingRuntimem_bindingRuntime
 The binding runtime containing the BindingProcessorRuntime.
 
BindingProcessorm_processor
 The processor whose runtime state is held by the BindingProcessorRuntime.
 

Detailed Description

Holds the runtime state of a ResourceBindingProcessor.

Since
Kanzi 3.9.3

Member Typedef Documentation

◆ ResourceListener

◆ ResourceListenerPtr

Constructor & Destructor Documentation

◆ ResourceBindingProcessorRuntime()

kanzi::ResourceBindingProcessorRuntime::ResourceBindingProcessorRuntime ( ResourceBindingProcessor & processor)
explicitprotected

Constructor.

Parameters
processorThe ResourceBindingProcessor who's runtime state is held by the created ResourceBindingProcessorRuntime.

Member Function Documentation

◆ create()

static unique_ptr< ResourceBindingProcessorRuntime > kanzi::ResourceBindingProcessorRuntime::create ( ResourceBindingProcessor & processor)
static

Creates a ResourceBindingProcessorRuntime.

Parameters
processorThe ResourceBindingProcessor who's runtime state is held by the created ResourceBindingProcessorRuntime.
Returns
A ResourceBindingProcessorRuntime instance.

◆ onResourceChange()

void kanzi::ResourceBindingProcessorRuntime::onResourceChange ( )

Function executed on resource change.

When Kanzi executes this function, it also re-executes the binding.

◆ attachOverride()

void kanzi::ResourceBindingProcessorRuntime::attachOverride ( AbstractBindingRuntime & bindingRuntime)
protectedvirtual

◆ detachOverride()

void kanzi::ResourceBindingProcessorRuntime::detachOverride ( )
protectedvirtual

◆ validateOverride()

bool kanzi::ResourceBindingProcessorRuntime::validateOverride ( Variant & value)
protectedvirtual

Member Data Documentation

◆ m_node

NodeWeakPtr kanzi::ResourceBindingProcessorRuntime::m_node
protected

Node attached to (for recreating the listener).

◆ m_listener

ResourceListenerPtr kanzi::ResourceBindingProcessorRuntime::m_listener
protected

Listener for resource changes.


The documentation for this class was generated from the following file: