PySide6.QtOpcUa.QOpcUaContentFilterElement

class QOpcUaContentFilterElement

The OPC UA ContentFilterElement.

Details

A content filter element contains an operator and a list of operands. There are four different operator types which contain literal values, references to attributes of nodes or to other content filter elements.

A combination of one or more content filter elements makes a content filter which is used by the server to filter data for the criteria defined by the content filter elements. For example, the where clause of an event filter is a content filter which is used to decide if a notification is generated for an event.

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

class FilterOperator

FilterOperator enumerates all possible operators for a ContentFilterElement that are specified in OPC UA 1.05 part 4, 7.7.3.

Constant

Description

QOpcUaContentFilterElement.FilterOperator.Equals

QOpcUaContentFilterElement.FilterOperator.IsNull

QOpcUaContentFilterElement.FilterOperator.GreaterThan

QOpcUaContentFilterElement.FilterOperator.LessThan

QOpcUaContentFilterElement.FilterOperator.GreaterThanOrEqual

QOpcUaContentFilterElement.FilterOperator.LessThanOrEqual

QOpcUaContentFilterElement.FilterOperator.Like

QOpcUaContentFilterElement.FilterOperator.Not

QOpcUaContentFilterElement.FilterOperator.Between

QOpcUaContentFilterElement.FilterOperator.InList

QOpcUaContentFilterElement.FilterOperator.And

QOpcUaContentFilterElement.FilterOperator.Or

QOpcUaContentFilterElement.FilterOperator.Cast

QOpcUaContentFilterElement.FilterOperator.InView

QOpcUaContentFilterElement.FilterOperator.OfType

QOpcUaContentFilterElement.FilterOperator.RelatedTo

QOpcUaContentFilterElement.FilterOperator.BitwiseAnd

QOpcUaContentFilterElement.FilterOperator.BitwiseOr

__init__()

Default constructs a content filter element with no parameters set.

__init__(rhs)
Parameters:

rhsQOpcUaContentFilterElement

Constructs a content filter element from rhs.

filterOperands()
Return type:

.list of QVariant

Returns the operands of the filter element.

filterOperandsRef()
Return type:

.list of QVariant

Returns a reference to the filter operands.

See also

filterOperands()

filterOperator()
Return type:

FilterOperator

Returns the filter operator.

__ne__(rhs)
Parameters:

rhsQOpcUaContentFilterElement

Return type:

bool

Returns true if lhs has a different value than rhs.

__lshift__(op)
Parameters:

opFilterOperator

Return type:

QOpcUaContentFilterElement

Sets filter operator op in this content filter element. If multiple operators are streamed into one content filter element, only the last operator is used. All others are discarded.

__lshift__(op)
Parameters:

opQOpcUaAttributeOperand

Return type:

QOpcUaContentFilterElement

Adds the attribute operand op to the operands list of this content filter element.

__lshift__(op)
Parameters:

opQOpcUaElementOperand

Return type:

QOpcUaContentFilterElement

Adds the element operand op to the operands list of this content filter element.

__lshift__(op)
Parameters:

opQOpcUaLiteralOperand

Return type:

QOpcUaContentFilterElement

Adds the literal operand op to the operands list of this content filter element.

__lshift__(op)
Parameters:

opQOpcUaSimpleAttributeOperand

Return type:

QOpcUaContentFilterElement

Adds the simple attribute operand op to the operands list of this content filter element.

__eq__(rhs)
Parameters:

rhsQOpcUaContentFilterElement

Return type:

bool

Returns true if lhs has the same value as rhs.

setFilterOperands(filterOperands)
Parameters:

filterOperands – .list of QVariant

Sets the filter operands for this content filter element to filterOperands. Supported classes are QOpcUaElementOperand , QOpcUaLiteralOperand , QOpcUaSimpleAttributeOperand and QOpcUaAttributeOperand .

See also

filterOperands()

setFilterOperator(filterOperator)
Parameters:

filterOperatorFilterOperator

Sets the operator that is applied to the filter operands to filterOperator.

See also

filterOperator()