QOpcUaContentFilterElement Class

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 QOpcUaAttributeOperand &op)
QOpcUaContentFilterElement &operator<<(const QOpcUaElementOperand &op)
QOpcUaContentFilterElement &operator<<(const QOpcUaLiteralOperand &op)
QOpcUaContentFilterElement &operator<<(const QOpcUaSimpleAttributeOperand &op)
QOpcUaContentFilterElement &operator=(const QOpcUaContentFilterElement &rhs)
(since 6.7) bool operator!=(const QOpcUaContentFilterElement &lhs, const QOpcUaContentFilterElement &rhs)
bool operator==(const QOpcUaContentFilterElement &lhs, const QOpcUaContentFilterElement &rhs)

詳細説明

コンテンツフィルター要素には、演算子とオペランドのリストが含まれます。演算子には、リテラル値、ノードの属性への参照、または他のコンテンツ・フィルタ要素への参照を含む 4 つのタイプがあります。

一つ以上のコンテンツ・フィルタ要素を組み合わせるとコンテンツ・フィルタとなり、サーバはコンテンツ・フィルタ要素で定義された基準でデータをフィルタリングするために使用する。例えば、イベント・フィルタのwhere 節は、イベントに対して通知を生成するかどうかを決定するために使用されるコンテンツ・フィルタである。

メンバー・タイプ・ドキュメント

enum QOpcUaContentFilterElement::FilterOperator

FilterOperator は、OPC UA 1.05 part 4, 7.7.3 に規定されている、ContentFilterElement に指定可能な全ての演算子を列挙する。

定数
QOpcUaContentFilterElement::Equals0
QOpcUaContentFilterElement::IsNull1
QOpcUaContentFilterElement::GreaterThan2
QOpcUaContentFilterElement::LessThan3
QOpcUaContentFilterElement::GreaterThanOrEqual4
QOpcUaContentFilterElement::LessThanOrEqual5
QOpcUaContentFilterElement::Like6
QOpcUaContentFilterElement::Not7
QOpcUaContentFilterElement::Between8
QOpcUaContentFilterElement::InList9
QOpcUaContentFilterElement::And10
QOpcUaContentFilterElement::Or11
QOpcUaContentFilterElement::Cast12
QOpcUaContentFilterElement::InView13
QOpcUaContentFilterElement::OfType14
QOpcUaContentFilterElement::RelatedTo15
QOpcUaContentFilterElement::BitwiseAnd16
QOpcUaContentFilterElement::BitwiseOr17

メンバ関数 ドキュメント

QOpcUaContentFilterElement::QOpcUaContentFilterElement()

デフォルトは、パラメータを設定しないコンテンツ・フィルタ要素を構築します。

QOpcUaContentFilterElement::QOpcUaContentFilterElement(const QOpcUaContentFilterElement &rhs)

rhs からコンテンツフィルター要素を構築する。

QList<QVariant> QOpcUaContentFilterElement::filterOperands() const

filter 要素のオペランドを返します。

setFilterOperands()も参照してください

QList<QVariant> &QOpcUaContentFilterElement::filterOperandsRef()

フィルタ・オペランドへの参照を返します。

filterOperands()も参照ください

QOpcUaContentFilterElement::FilterOperator QOpcUaContentFilterElement::filterOperator() const

フィルタ演算子を返します。

setFilterOperator()も参照ください

void QOpcUaContentFilterElement::setFilterOperands(const QList<QVariant> &filterOperands)

このコンテンツフィルター要素のフィルターオペランドをfilterOperands に設定します。 サポートするクラスはQOpcUaElementOperand,QOpcUaLiteralOperand,QOpcUaSimpleAttributeOperand およびQOpcUaAttributeOperand です。

filterOperands()も参照してください

void QOpcUaContentFilterElement::setFilterOperator(QOpcUaContentFilterElement::FilterOperator filterOperator)

フィルタ・オペランドに適用される演算子をfilterOperator に設定します。

filterOperator()も参照

QVariant QOpcUaContentFilterElement::operator QVariant() const

このコンテンツフィルター要素をQVariant に変換する。

QOpcUaContentFilterElement &QOpcUaContentFilterElement::operator<<(QOpcUaContentFilterElement::FilterOperator op)

このコンテンツフィルター要素にフィルター演算子op を設定する。複数の演算子が1つのコンテンツフィルタエレメントにストリーミングされる場合、最後の演算子のみが使用される。それ以外は破棄される。

QOpcUaContentFilterElement &QOpcUaContentFilterElement::operator<<(const QOpcUaAttributeOperand &op)

属性オペランドop をこのコンテント・フィルタ要素のオペランド・リストに追加します。

QOpcUaContentFilterElement &QOpcUaContentFilterElement::operator<<(const QOpcUaElementOperand &op)

このコンテンツ・フィルタ要素のオペランドリストに、要素オペランドop を追加します。

QOpcUaContentFilterElement &QOpcUaContentFilterElement::operator<<(const QOpcUaLiteralOperand &op)

リテラル・オペランドop をコンテンツ・フィルタ要素のオペランド・リストに追加します。

QOpcUaContentFilterElement &QOpcUaContentFilterElement::operator<<(const QOpcUaSimpleAttributeOperand &op)

このコンテント・フィルタ要素のオペランド・リストに、単純属性オペランドop を追加します。

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

このコンテンツフィルター要素にrhs の値を設定する。

関連する非会員

[noexcept, since 6.7] bool operator!=(const QOpcUaContentFilterElement &lhs, const QOpcUaContentFilterElement &rhs)

lhsrhs と異なる値を持つ場合、true を返します。

この関数は Qt 6.7 で導入されました。

[noexcept] bool operator==(const QOpcUaContentFilterElement &lhs, const QOpcUaContentFilterElement &rhs)

lhsrhs と同じ値の場合、true を返す。

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