이 페이지에서

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)

상세 설명

콘텐츠 필터 요소는 연산자와 피연산자 목록을 포함합니다. 리터럴 값, 노드의 속성 참조 또는 다른 콘텐츠 필터 요소에 대한 참조를 포함하는 네 가지 유형의 연산자가 있습니다.

하나 이상의 콘텐츠 필터 요소가 결합되어 콘텐츠 필터를 구성하며, 서버는 이 콘텐츠 필터를 사용하여 콘텐츠 필터 요소에 정의된 기준에 따라 데이터를 필터링합니다. 예를 들어, 이벤트 필터의 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 ’ 필터 연산자를 설정합니다. 하나의 콘텐츠 필터 요소로 여러 연산자가 스트리밍되는 경우, 마지막 연산자만 사용됩니다. 그 외의 연산자는 모두 무시됩니다.

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.