|
| void | setMode (Mode mode) |
| | Sets binding mode. More...
|
| |
| Mode | getMode () const |
| | Gets binding mode. More...
|
| |
| void | setWriteMode (WriteMode mode) |
| | Sets binding write mode. More...
|
| |
| WriteMode | getWriteMode () const |
| | Gets binding write mode. More...
|
| |
| void | setPrecedence (optional< PropertyValuePrecedence > precedence) |
| | Sets precedence (for value source write mode). More...
|
| |
| optional< PropertyValuePrecedence > | getPrecedence () const |
| | Gets precedence (for value source write mode). More...
|
| |
| void | setSourceValue (const Variant &value) |
| | Set up source rule to specify a value. More...
|
| |
| void | setSourceDynamicObjectProperty (string_view objectPath, AbstractPropertyType propertyType, PropertyField field) |
| | Set up source rule to specify an object property. More...
|
| |
| void | addSourceDynamicObjectProperty (string_view objectPath, AbstractPropertyType propertyType, PropertyField field) |
| | Adds or a source property as the source rule. More...
|
| |
| void | setSourceMessageArgument (AbstractPropertyType argumentType, PropertyField field) |
| | Set up source rule to specify a message argument. More...
|
| |
| void | setSourceResource (ResourceID id) |
| | Set up source as a resource object. More...
|
| |
| void | addDataSourceProperty (string_view objectPath) |
| | Adds a data source property as the source rule. More...
|
| |
| void | setZeroSource () |
| | Set a zero source binding. More...
|
| |
| void | setTargetDynamicObjectProperty (string_view objectPath, AbstractPropertyType propertyType, PropertyField field) |
| | Set up target rule to specify an object property. More...
|
| |
| void | setTargetMessageArgument (AbstractPropertyType argumentType, PropertyField field) |
| | Set up target rule to specify a message argument. More...
|
| |
| bool | read (Node *currentObjectNode, const MessageArguments *sourceMessage) |
| | Read values from sourceMessage and store them in rule's internal cache. More...
|
| |
| bool | write (Node *currentObjectNode, MessageArguments *targetMessage) |
| | Save the cached value from the rule to targetMessage if it has one cached. More...
|
| |
| bool | update (Node *currentObjectNode, const MessageArguments *sourceMessage, MessageArguments *targetMessage) |
| | Read values from sourceMessage and write them to targetMessage if the binding rule type is a message argument to message argument. More...
|
| |
| bool | updateSource (Node *currentObjectNode, MessageArguments *sourceMessage, const MessageArguments *targetMessage) |
| | Update the source value in binding. More...
|
| |
| bool | readTargetValue (Variant *value) |
| | Read the target value. More...
|
| |
| const Variant * | getCachedSourceValue () const |
| | Returns the source value from rule's internal cache. More...
|
| |
| void | addValidator (BindingProcessorSharedPtr processor) |
| | Add a validator object. More...
|
| |
| void | removeValidator (const BindingProcessor &processor) |
| | Remove a validator object. More...
|
| |
| BindingProcessorIterator | beginBindingProcessors () const |
| |
| BindingProcessorIterator | endBindingProcessors () const |
| |
| size_t | getSourceRegisterCount () const |
| | Gets the number of source registers in binding rule. More...
|
| |
| size_t | getConstantRegisterCount () const |
| | Gets the number of constant registers in binding rule. More...
|
| |
| size_t | getTemporaryRegisterCount () const |
| | Gets the number of temporary registers in binding rule. More...
|
| |
| size_t | getDataSourceRegisterCount () const |
| | Gets the number of data source registers in binding rule. More...
|
| |
| void | attach (Node *objectNode) |
| | Attach binding. More...
|
| |
| void | detach () |
| | Detach binding. More...
|
| |
| Node * | getAttachedNode () const |
| | Get the object node the rule is attached to, if any. More...
|
| |
| void | addConstantRegister (const Variant &constant) |
| | Add a constant value to the binding. More...
|
| |
| void | setConstantRegister (size_t index, const Variant &constant) |
| | Set constant register at given index. More...
|
| |
| void | setTemporaryRegisterCount (size_t count) |
| | Set the number of temporaries for the binding. More...
|
| |
| const Variant * | getSourceRegister (size_t index) const |
| | Get access to source register. More...
|
| |
| const Variant * | getConstantRegister (size_t index) const |
| | Get access to constant register. More...
|
| |
| Variant * | getTemporaryRegister (size_t index) |
| | Get access to temporary register. More...
|
| |
| const Variant * | getDataSourceRegister (size_t index) const |
| | Get access to data source register. More...
|
| |
| bool | getTargetPropertyType (AbstractPropertyType &out_targetPropertyType, PropertyField &out_field) const |
| | Returns target property type and property field of the binding rule if it is writing to property. More...
|
| |
| virtual | ~Binding () |
| |
| BindingSharedPtr | copy () const |
| | Copies a binding object. More...
|
| |
| bool | isAttached () const |
| | Tells if this binding is attached. More...
|
| |
| void | reserveExpressions (size_t expressionCount) |
| |
| void | addExpression (uint32_t operation, uint32_t argument1, uint32_t argument1Field, uint32_t argument2, uint32_t argument2Field, uint32_t argument3, uint32_t argument3Field, uint32_t output, uint32_t outputField) |
| |
| void | setTemplateRoot (NodeSharedPtr templateRoot) |
| | Sets the template root of this binding. More...
|
| |
| NodeSharedPtr | getTemplateRoot () const |
| | Gets the template root of this binding. More...
|
| |
| | Object (Domain *domain) |
| |
| virtual | ~Object () |
| |
| Domain * | getDomain () const |
| | Returns the domain the object belongs to. More...
|
| |
| KzuTaskScheduler * | getTaskScheduler () const |
| | Returns the task scheduler of the object. More...
|
| |
| KzuMessageDispatcher * | getMessageDispatcher () const |
| | Returns the message dispatcher of the object. More...
|
| |
| ResourceManager * | getResourceManager () const |
| | Returns the resource manager of the object. More...
|
| |
| virtual const Metaclass * | getDynamicMetaclass () const KZ_OVERRIDE |
| | Returns the metaclass of the dynamic type of the object. More...
|
| |
| AppliedStyleEntry * | applyObjectStyle (kanzi::StyleSharedPtr style) |
| | Applies a style to an object. More...
|
| |
| void | unapplyObjectStyle (AppliedStyleEntry *appliedStyleEntry) |
| |
| void | applyObjectStyles () |
| | Apply all styles for an object node. More...
|
| |
| void | unapplyObjectStyles () |
| | Unapplies and removes all applied styles. More...
|
| |
| virtual | ~MetaObject () |
| |
| bool | isTypeOf (const Metaclass *objectType) const |
| | Determines if the type of this object is the given type or derived from it. More...
|
| |
| | PropertyObject () |
| |
| virtual | ~PropertyObject () |
| |
| template<typename DataType > |
| void | setProperty (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Traits::ParameterType value) |
| | Sets the local value of a property. More...
|
| |
| void | removeKzbProperties () |
| |
| template<typename DataType > |
| PropertyType< DataType >::Traits::ReturnType | getProperty (const PropertyType< DataType > &propertyType) const |
| | Returns the current value of a property. More...
|
| |
| template<typename DataType > |
| optional< typename PropertyType< DataType >::Traits::ReturnType > | getOptionalProperty (const PropertyType< DataType > &propertyType) const |
| | Evaluates the property value in the same way as the overload above but does not default to the value in property metadata if there are no inputs to the property value. More...
|
| |
| template<typename DataType > |
| PropertyType< DataType >::Traits::ReturnType | getPropertyBase (const PropertyType< DataType > &propertyType) const |
| | Returns the current value of a property disregarding modifiers. More...
|
| |
| template<typename DataType > |
| void | setAbstractProperty (AbstractPropertyType abstractPropertyType, typename PropertyType< DataType >::Traits::ParameterType value) |
| |
| template<typename DataType > |
| PropertyType< DataType >::Traits::ReturnType | getAbstractProperty (AbstractPropertyType abstractPropertyType) const |
| |
| template<typename DataType > |
| PropertyType< DataType >::Traits::ReturnType | getAbstractPropertyBase (AbstractPropertyType abstractPropertyType) const |
| |
| template<typename DataType > |
| optional< typename PropertyType< DataType >::Traits::ReturnType > | getOptionalAbstractProperty (AbstractPropertyType abstractPropertyType) const |
| |
| void | setPropertyFlag (AbstractPropertyType propertyType, uint32_t flag) |
| |
| bool | isPropertyFlagSet (AbstractPropertyType propertyType, uint32_t flag) const |
| |
| void | clearPropertyFlag (AbstractPropertyType propertyType, uint32_t flag) |
| |
| bool | hasValue (AbstractPropertyType propertyType) const |
| | Evaluates whether there are any inputs into the property value. More...
|
| |
| bool | hasBaseValue (AbstractPropertyType propertyType) const |
| | Evaluates whether there are any inputs into the property value, disregarding modifiers. More...
|
| |
| bool | hasLocalValue (AbstractPropertyType propertyType) const |
| | Evaluates whether there is a local value set for the property. More...
|
| |
| bool | hasNonClassValue (AbstractPropertyType propertyType) const |
| | Evaluates whether there is a value of any precedence higher than class default value set for the property. More...
|
| |
| void | removeLocalValue (AbstractPropertyType propertyType) |
| | Removes the local value associated with the property. More...
|
| |
| void | copyLocalValue (const PropertyObject &other, AbstractPropertyType propertyType) |
| | Copies local value of single property from another object. More...
|
| |
| void | copyLocalValues (const PropertyObject &other) |
| | Copies all local values from another object. More...
|
| |
| virtual void | onPropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) |
| | Virtual function to handle property change notifications. More...
|
| |
| template<typename DataType > |
| void | addPropertyValueSource (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::TypedValueSource *valueSource, PropertyValuePrecedence precedence, void *owner) |
| |
| template<typename DataType > |
| void | removePropertyValueSource (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::TypedValueSource *valueSource, void *owner) |
| |
| template<typename DataType > |
| void | addPropertyModifier (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::ModifierCallback callback, void *owner) |
| |
| template<typename DataType > |
| void | removePropertyModifier (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::ModifierCallback callback, void *owner) |
| |
| void | validatePropertyModifiers (AbstractPropertyType propertyType) |
| |
| template<typename DataType > |
| void | addPropertyNotificationHandler (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::NotificationCallback callback, void *owner) |
| |
| template<typename DataType > |
| void | removePropertyNotificationHandler (const PropertyType< DataType > &propertyType, typename PropertyType< DataType >::Descriptor::NotificationCallback callback, void *owner) |
| |
| template<typename DataType > |
| size_t | getPropertyNotificationHandlerCount (const PropertyType< DataType > &propertyType) |
| | Gets number of current notification handlers for given property type. More...
|
| |
Binding objects establish connections between properties, message values or arguments.
When the data in the source connection is modified the binding propagates the value to the target connection. While the data is propagated the binding passes it through the optional chain of processors that can modify the value or reject the update.