FilterElement QML Type
L'elemento ContentFilterElement di OPC UA. Altro...
| Import Statement: | import QtOpcUa |
| Since: | QtOpcUa 5.13 |
| Status: | Deprecated since 6.9 |
Questo tipo è deprecato a partire da QtOpcUa 6.9. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.
Proprietà
- firstOperand : variant
- operatorType : enumeration
- secondOperand : variant
Descrizione dettagliata
Un elemento di filtro dei contenuti contiene un operatore e degli operandi. Esistono quattro diversi tipi di operatori che contengono valori letterali, riferimenti ad attributi di nodi o ad altri elementi di filtro dei contenuti.
Una combinazione di uno o più elementi di filtro dei contenuti costituisce un filtro dei contenuti che viene utilizzato dal server per filtrare i dati in base ai criteri definiti dagli elementi di filtro dei contenuti. Ad esempio, la clausola where di un filtro di eventi è un filtro dei contenuti utilizzato per decidere se generare una notifica per un evento.
QtOpcUa.FilterElement {
operator: QtOpcUa.FilterElement.GreaterThanOrEqual
firstOperand: QtOpcUa.SimpleAttributeOperand { ... }
secondOperand: QtOpcUa.LiteralOperand { ... }
}Vedi anche EventFilter.
Documentazione sulle proprietà
firstOperand : variant
Primo operando da utilizzare con l'operatore. Può essere uno dei seguenti: SimpleAttributeOperand, AttributeOperand, LiteralOperand o ElementOperand.
operatorType : enumeration
L'operatore filtro.
Operatori possibili per un " FilterElement " specificati nella norma OPC UA 1.05, parte 4, paragrafo 7.7.3
| Costante | Valore |
|---|---|
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
Secondo operando da utilizzare con l'operatore. Può essere uno dei seguenti: SimpleAttributeOperand, AttributeOperand, LiteralOperand o 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.