The OPC UA ContentFilterElement. 更多...
头: | #include <QOpcUaContentFilterElement> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
enum | FilterOperator { Equals, IsNull, GreaterThan, LessThan, GreaterThanOrEqual, …, BitwiseOr } |
QOpcUaContentFilterElement () | |
QOpcUaContentFilterElement (const QOpcUaContentFilterElement & rhs ) | |
QList<QVariant> | filterOperands () const |
QList<QVariant> & | filterOperandsRef () |
QOpcUaContentFilterElement::FilterOperator | filterOperator () const |
void | setFilterOperands (const QList<QVariant> & filterOperands ) |
void | setFilterOperator (QOpcUaContentFilterElement::FilterOperator filterOperator ) |
QVariant | operator QVariant () const |
QOpcUaContentFilterElement & | operator<< (QOpcUaContentFilterElement::FilterOperator op ) |
QOpcUaContentFilterElement & | operator<< (const QOpcUaSimpleAttributeOperand & op ) |
QOpcUaContentFilterElement & | operator<< (const QOpcUaAttributeOperand & op ) |
QOpcUaContentFilterElement & | operator<< (const QOpcUaLiteralOperand & op ) |
QOpcUaContentFilterElement & | operator<< (const QOpcUaElementOperand & op ) |
QOpcUaContentFilterElement & | operator= (const QOpcUaContentFilterElement & rhs ) |
(从 6.7 起)
bool
|
operator!= (const QOpcUaContentFilterElement & lhs , const QOpcUaContentFilterElement & rhs ) |
bool | operator== (const QOpcUaContentFilterElement & lhs , const QOpcUaContentFilterElement & rhs ) |
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.
FilterOperator enumerates all possible operators for a ContentFilterElement that are specified in OPC UA 1.05 part 4, 7.7.3.
常量 | 值 |
---|---|
QOpcUaContentFilterElement::Equals
|
0
|
QOpcUaContentFilterElement::IsNull
|
1
|
QOpcUaContentFilterElement::GreaterThan
|
2
|
QOpcUaContentFilterElement::LessThan
|
3
|
QOpcUaContentFilterElement::GreaterThanOrEqual
|
4
|
QOpcUaContentFilterElement::LessThanOrEqual
|
5
|
QOpcUaContentFilterElement::Like
|
6
|
QOpcUaContentFilterElement::Not
|
7
|
QOpcUaContentFilterElement::Between
|
8
|
QOpcUaContentFilterElement::InList
|
9
|
QOpcUaContentFilterElement::And
|
10
|
QOpcUaContentFilterElement::Or
|
11
|
QOpcUaContentFilterElement::Cast
|
12
|
QOpcUaContentFilterElement::InView
|
13
|
QOpcUaContentFilterElement::OfType
|
14
|
QOpcUaContentFilterElement::RelatedTo
|
15
|
QOpcUaContentFilterElement::BitwiseAnd
|
16
|
QOpcUaContentFilterElement::BitwiseOr
|
17
|
Default constructs a content filter element with no parameters set.
Constructs a content filter element from rhs .
Returns the operands of the filter element.
另请参阅 setFilterOperands ().
Returns a reference to the filter operands.
另请参阅 filterOperands ().
Returns the filter operator.
另请参阅 setFilterOperator ().
Sets the filter operands for this content filter element to filterOperands . Supported classes are QOpcUaElementOperand , QOpcUaLiteralOperand , QOpcUaSimpleAttributeOperand and QOpcUaAttributeOperand .
另请参阅 filterOperands ().
Sets the operator that is applied to the filter operands to filterOperator .
另请参阅 filterOperator ().
Converts this content filter element to QVariant .
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.
Adds the simple attribute operand op to the operands list of this content filter element.
Adds the attribute operand op to the operands list of this content filter element.
Adds the literal operand op to the operands list of this content filter element.
Adds the element operand op to the operands list of this content filter element.
设置值从 rhs in this content filter element.
[noexcept, since 6.7]
bool
operator!=
(const
QOpcUaContentFilterElement
&
lhs
, const
QOpcUaContentFilterElement
&
rhs
)
返回
true
if
lhs
has a different value than
rhs
.
该函数在 Qt 6.7 引入。
[noexcept]
bool
operator==
(const
QOpcUaContentFilterElement
&
lhs
, const
QOpcUaContentFilterElement
&
rhs
)
返回
true
if
lhs
has the same value as
rhs
.