FilterElement QML Type

OPC UA 内容过滤元素。更多

Import Statement: import QtOpcUa
Since: QtOpcUa 5.13
Status: Deprecated since 6.9

自 QtOpcUa 6.9 起,该类型已被弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

内容过滤元素包含运算符和操作数。有四种不同的操作符类型,它们包含字面值、对节点属性的引用或对其他内容过滤元素的引用。

一个或多个内容过滤器元素的组合构成一个内容过滤器,服务器根据内容过滤器元素定义的标准过滤数据。例如,事件过滤器的where 子句就是一个内容过滤器,用于决定是否为事件生成通知。

QtOpcUa.FilterElement {
    operator: QtOpcUa.FilterElement.GreaterThanOrEqual
    firstOperand: QtOpcUa.SimpleAttributeOperand { ... }
    secondOperand: QtOpcUa.LiteralOperand { ... }
}

另请参阅 EventFilter

属性文档

firstOperand : variant

操作符的第一个操作数。它可以是SimpleAttributeOperand,AttributeOperand,LiteralOperandElementOperand 中的一个。


operatorType : enumeration

过滤操作符。

OPC UA 1.05 第 4 部分 7.7.3 中规定的FilterElement 的可能运算符

常数
FilterElement.Equals
FilterElement.IsNull
FilterElement.GreaterThan
FilterElement.LessThan
FilterElement.GreaterThanOrEqual
FilterElement.LessThanOrEqual
FilterElement.Like
FilterElement.Not
FilterElement.Between
FilterElement.InList
FilterElement.And
FilterElement.Or
FilterElement.Cast
FilterElement.InView
FilterElement.OfType
FilterElement.RelatedTo
FilterElement.BitwiseAnd
FilterElement.BitwiseOr

secondOperand : variant

与运算符一起使用的第二个操作数。它可以是SimpleAttributeOperand,AttributeOperand,LiteralOperandElementOperand 中的一个。


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.