このページでは

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)
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 種類のタイプがあり、リテラル値、ノードの属性への参照、または他のコンテンツフィルター要素への参照を含みます。

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

メンバ型のドキュメント

enum QOpcUaContentFilterElement::FilterOperator

FilterOperator は、OPC UA 1.05 第 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()

default は、パラメータが設定されていないコンテンツフィルター要素を生成します。

QOpcUaContentFilterElement::QOpcUaContentFilterElement(const QOpcUaContentFilterElement &rhs)

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

QList<QVariant> QOpcUaContentFilterElement::filterOperands() const

フィルタ要素のオペランドを返します。

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()も参照してください 。

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)

lhs の値がrhs と異なる場合、true を返します。

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

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

lhs の値がrhs と同じである場合、true を返します。

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