QContentFilterElement Class

(QOpcUa::QContentFilterElement)

The OPC UA ContentFilterElement. More...

Header: #include <QtOpcUa/qopcuatype.h>
qmake: QT += opcua

Public Types

enum FilterOperator { Equals, IsNull, GreaterThan, LessThan, ..., BitwiseOr }

Public Functions

QContentFilterElement()
QContentFilterElement(const QOpcUa::QContentFilterElement &rhs)
~QContentFilterElement()
QVector<QVariant> filterOperands() const
QVector<QVariant> &filterOperandsRef()
QOpcUa::QContentFilterElement::FilterOperator filterOperator() const
void setFilterOperands(const QVector<QVariant> &filterOperands)
void setFilterOperator(QOpcUa::QContentFilterElement::FilterOperator filterOperator)
QVariant operator QVariant() const
QOpcUa::QContentFilterElement &operator<<(QOpcUa::QContentFilterElement::FilterOperator op)
QOpcUa::QContentFilterElement &operator<<(const QOpcUa::QSimpleAttributeOperand &op)
QOpcUa::QContentFilterElement &operator<<(const QOpcUa::QAttributeOperand &op)
QOpcUa::QContentFilterElement &operator<<(const QOpcUa::QLiteralOperand &op)
QOpcUa::QContentFilterElement &operator<<(const QOpcUa::QElementOperand &op)
QOpcUa::QContentFilterElement &operator=(const QOpcUa::QContentFilterElement &rhs)
bool operator==(const QOpcUa::QContentFilterElement &rhs) const

Detailed Description

The OPC UA ContentFilterElement.

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.

Member Type Documentation

enum QContentFilterElement::FilterOperator

FilterOperator enumerates all possible operators for a ContentFilterElement that are specified in OPC-UA part 4, Tables 115 and 116.

ConstantValue
QOpcUa::QContentFilterElement::Equals0
QOpcUa::QContentFilterElement::IsNull1
QOpcUa::QContentFilterElement::GreaterThan2
QOpcUa::QContentFilterElement::LessThan3
QOpcUa::QContentFilterElement::GreaterThanOrEqual4
QOpcUa::QContentFilterElement::LessThanOrEqual5
QOpcUa::QContentFilterElement::Like6
QOpcUa::QContentFilterElement::Not7
QOpcUa::QContentFilterElement::Between8
QOpcUa::QContentFilterElement::InList9
QOpcUa::QContentFilterElement::And10
QOpcUa::QContentFilterElement::Or11
QOpcUa::QContentFilterElement::Cast12
QOpcUa::QContentFilterElement::InView13
QOpcUa::QContentFilterElement::OfType14
QOpcUa::QContentFilterElement::RelatedTo15
QOpcUa::QContentFilterElement::BitwiseAnd16
QOpcUa::QContentFilterElement::BitwiseOr17

Member Function Documentation

QContentFilterElement::QContentFilterElement()

Default constructs an instance of QContentFilterElement.

QContentFilterElement::QContentFilterElement(const QOpcUa::QContentFilterElement &rhs)

Constructs a content filter element from rhs.

QContentFilterElement::~QContentFilterElement()

Destroys the instance of QContentFilterElement.

QVector<QVariant> QContentFilterElement::filterOperands() const

Returns the operands of the filter element.

See also setFilterOperands().

QVector<QVariant> &QContentFilterElement::filterOperandsRef()

Returns a reference to the filter operands.

See also filterOperands().

QOpcUa::QContentFilterElement::FilterOperator QContentFilterElement::filterOperator() const

Returns the filter operator.

See also setFilterOperator().

void QContentFilterElement::setFilterOperands(const QVector<QVariant> &filterOperands)

Sets the filter operands for this content filter element to filterOperands. Supported classes are QOpcUa::QElementOperand, QOpcUa::QLiteralOperand, QOpcUa::QSimpleAttributeOperand and QOpcUa::QAttributeOperand.

See also filterOperands().

void QContentFilterElement::setFilterOperator(QOpcUa::QContentFilterElement::FilterOperator filterOperator)

Sets the operator that is applied to the filter operands to filterOperator.

See also filterOperator().

QVariant QContentFilterElement::operator QVariant() const

Converts this content filter element to QVariant.

QOpcUa::QContentFilterElement &QContentFilterElement::operator<<(QOpcUa::QContentFilterElement::FilterOperator op)

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.

QOpcUa::QContentFilterElement &QContentFilterElement::operator<<(const QOpcUa::QSimpleAttributeOperand &op)

Adds the simple attribute operand op to the operands list of this content filter element.

QOpcUa::QContentFilterElement &QContentFilterElement::operator<<(const QOpcUa::QAttributeOperand &op)

Adds the attribute operand op to the operands list of this content filter element.

QOpcUa::QContentFilterElement &QContentFilterElement::operator<<(const QOpcUa::QLiteralOperand &op)

Adds the literal operand op to the operands list of this content filter element.

QOpcUa::QContentFilterElement &QContentFilterElement::operator<<(const QOpcUa::QElementOperand &op)

Adds the element operand op to the operands list of this content filter element.

QOpcUa::QContentFilterElement &QContentFilterElement::operator=(const QOpcUa::QContentFilterElement &rhs)

Sets the values from rhs in this content filter element.

bool QContentFilterElement::operator==(const QOpcUa::QContentFilterElement &rhs) const

Returns true if this content filter element has the same value as rhs.

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