本页内容

QOpcUaEventFilterResult Class

OPCUA 的 EventFilterResult。更多内容...

标题: #include <QOpcUaEventFilterResult>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

公共函数

QOpcUaEventFilterResult()
QOpcUaEventFilterResult(const QOpcUaEventFilterResult &rhs)
bool isGood() const
QList<QOpcUa::UaStatusCode> selectClauseResults() const
QList<QOpcUa::UaStatusCode> &selectClauseResultsRef()
void setSelectClauseResults(const QList<QOpcUa::UaStatusCode> &selectClausesResult)
void setWhereClauseResults(const QList<QOpcUaContentFilterElementResult> &whereClausesResult)
QList<QOpcUaContentFilterElementResult> whereClauseResults() const
QList<QOpcUaContentFilterElementResult> &whereClauseResultsRef()
QOpcUaEventFilterResult &operator=(const QOpcUaEventFilterResult &rhs)

详细说明

EventFilterResult 包含select 子句中所有元素以及where 子句中所有元素的状态码。

成员函数文档

QOpcUaEventFilterResult::QOpcUaEventFilterResult()

默认情况下,会构建一个未设置任何参数的事件过滤器结果。

QOpcUaEventFilterResult::QOpcUaEventFilterResult(const QOpcUaEventFilterResult &rhs)

根据rhs 构建事件过滤器结果。

bool QOpcUaEventFilterResult::isGood() const

如果该事件过滤器的结果有效,则返回 `true `。

QList<QOpcUa::UaStatusCode> QOpcUaEventFilterResult::selectClauseResults() const

返回select 子句中所有元素的状态码,顺序与过滤器中使用的顺序一致。

另请参阅 setSelectClauseResults()。

QList<QOpcUa::UaStatusCode> &QOpcUaEventFilterResult::selectClauseResultsRef()

返回对select 子句结果的引用。

另请参阅 selectClauseResults()。

void QOpcUaEventFilterResult::setSelectClauseResults(const QList<QOpcUa::UaStatusCode> &selectClausesResult)

将select 子句的结果设置为selectClausesResult 。

另请参阅 selectClauseResults()。

void QOpcUaEventFilterResult::setWhereClauseResults(const QList<QOpcUaContentFilterElementResult> &whereClausesResult)

将where 子句的结果设置为whereClausesResult 。

另请参阅 whereClauseResults()。

QList<QOpcUaContentFilterElementResult> QOpcUaEventFilterResult::whereClauseResults() const

返回where 子句中所有元素的状态码,顺序与过滤器中使用的顺序一致。

另请参阅 setWhereClauseResults()。

QList<QOpcUaContentFilterElementResult> &QOpcUaEventFilterResult::whereClauseResultsRef()

返回对where 子句结果的引用。

另请参阅 whereClauseResults()。

QOpcUaEventFilterResult &QOpcUaEventFilterResult::operator=(const QOpcUaEventFilterResult &rhs)

将rhs 中的值设置为此事件过滤器的结果。

© 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.