FilterElement QML Type
OPC UA 的 ContentFilterElement。更多内容...
| Import Statement: | import QtOpcUa |
| Since: | QtOpcUa 5.13 |
| Status: | Deprecated since 6.9 |
自 QtOpcUa 6.9 起,此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- firstOperand : variant
- operatorType : enumeration
- secondOperand : variant
详细说明
一个内容过滤器元素包含一个运算符和若干操作数。共有四种不同的运算符类型,它们包含字面值、对节点属性的引用或对其他内容过滤器元素的引用。
一个或多个内容过滤元素的组合构成一个内容过滤器,服务器会利用该过滤器根据内容过滤元素定义的条件对数据进行过滤。例如,事件过滤器中的where 子句即是一个内容过滤器,用于决定是否针对某个事件生成通知。
QtOpcUa.FilterElement {
operator: QtOpcUa.FilterElement.GreaterThanOrEqual
firstOperand: QtOpcUa.SimpleAttributeOperand { ... }
secondOperand: QtOpcUa.LiteralOperand { ... }
}另请参阅 EventFilter 。
属性文档
firstOperand : variant
要与该运算符一起使用的第一个操作数。它可以是SimpleAttributeOperand 、AttributeOperand 、LiteralOperand 或ElementOperand 中的任意一个。
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 、LiteralOperand 或ElementOperand 中的一个。
© 2026 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.