QOpcUaContentFilterElement Class
OPC UA 콘텐츠 필터 요소. 더 보기...
Header: | #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) |
상세 설명
콘텐츠 필터 요소에는 연산자와 피연산자 목록이 포함됩니다. 리터럴 값, 노드의 속성 또는 다른 콘텐츠 필터 요소에 대한 참조를 포함하는 네 가지 연산자 유형이 있습니다.
하나 이상의 콘텐츠 필터 요소를 조합하면 서버에서 콘텐츠 필터 요소에 정의된 기준에 따라 데이터를 필터링하는 데 사용되는 콘텐츠 필터가 만들어집니다. 예를 들어 이벤트 필터의 where
절은 이벤트에 대한 알림을 생성할지 여부를 결정하는 데 사용되는 콘텐츠 필터입니다.
회원 유형 문서
enum QOpcUaContentFilterElement::FilterOperator
FilterOperator는 OPC UA 1.05 파트 4, 7.7.3에 지정된 ContentFilterElement에 대해 가능한 모든 연산자를 열거합니다.
Constant | Value |
---|---|
QOpcUaContentFilterElement::Equals | 0 |
QOpcUaContentFilterElement::IsNull | 1 |
QOpcUaContentFilterElement::GreaterThan | 2 |
QOpcUaContentFilterElement::LessThan | 3 |
QOpcUaContentFilterElement::GreaterThanOrEqual | 4 |
QOpcUaContentFilterElement::LessThanOrEqual | 5 |
QOpcUaContentFilterElement::Like | 6 |
QOpcUaContentFilterElement::Not | 7 |
QOpcUaContentFilterElement::Between | 8 |
QOpcUaContentFilterElement::InList | 9 |
QOpcUaContentFilterElement::And | 10 |
QOpcUaContentFilterElement::Or | 11 |
QOpcUaContentFilterElement::Cast | 12 |
QOpcUaContentFilterElement::InView | 13 |
QOpcUaContentFilterElement::OfType | 14 |
QOpcUaContentFilterElement::RelatedTo | 15 |
QOpcUaContentFilterElement::BitwiseAnd | 16 |
QOpcUaContentFilterElement::BitwiseOr | 17 |
멤버 함수 문서
QOpcUaContentFilterElement::QOpcUaContentFilterElement()
기본값은 매개변수가 설정되지 않은 콘텐츠 필터 요소를 구성합니다.
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()도 참조하세요 .
QVariant 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
을 반환합니다 .
© 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.