QMqttTopicName Class
QMqttTopicName 클래스는 MQTT 토픽 이름을 나타냅니다. 더 보기...
| 헤더: | #include <QMqttTopicName> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Mqtt) target_link_libraries(mytarget PRIVATE Qt6::Mqtt) |
| qmake: | QT += mqtt |
- 상속된 멤버를 포함한 모든 멤버 목록
- QMqttTopicName은 암시적 공유 클래스의 일부입니다.
참고: 이 클래스의 모든 함수는 재진입 가능합니다.
공개 함수
| QMqttTopicName(const QLatin1String &name) | |
| QMqttTopicName(const QString &name = QString()) | |
| QMqttTopicName(const QMqttTopicName &name) | |
| ~QMqttTopicName() | |
| bool | isValid() const |
| int | levelCount() const |
| QStringList | levels() const |
| QString | name() const |
| void | setName(const QString &name) |
| void | swap(QMqttTopicName &other) |
| QMqttTopicName & | operator=(const QMqttTopicName &name) |
관련 비멤버
| bool | operator!=(const QMqttTopicName &lhs, const QMqttTopicName &rhs) |
| bool | operator<(const QMqttTopicName &lhs, const QMqttTopicName &rhs) |
| QDataStream & | operator<<(QDataStream &out, const QMqttTopicName &name) |
| bool | operator==(const QMqttTopicName &lhs, const QMqttTopicName &rhs) |
| QDataStream & | operator>>(QDataStream &in, QMqttTopicName &name) |
상세 설명
QMqttTopicName은 MQTT 토픽 이름에 대한 표현력 있는 데이터 유형을 제공하는 QString 을 감싸는 얇은 래퍼입니다. 의도하지 않은 오용을 방지하는 강력한 유형의 이점 외에도, QMqttTopicName은 isValid() 또는 levels()과 같은 토픽 이름과 관련된 편리한 함수를 제공합니다.
QMqttTopicFilter도 참조하십시오 .
멤버 함수 문서
QMqttTopicName::QMqttTopicName(const QLatin1String &name)
지정된 name 을 사용하여 새로운 MQTT 토픽 이름을 생성합니다.
QMqttTopicName::QMqttTopicName(const QString &name = QString())
지정된 name 을 사용하여 새로운 MQTT 토픽 이름을 생성합니다.
QMqttTopicName::QMqttTopicName(const QMqttTopicName &name)
name 의 복사본으로 새로운 MQTT 토픽 이름을 생성합니다.
[noexcept] QMqttTopicName::~QMqttTopicName()
QMqttTopicName 객체를 삭제합니다.
bool QMqttTopicName::isValid() const
토픽 이름이 MQTT 표준 4.7절에 따라 유효한 경우 ` true `을 반환하고, 그렇지 않은 경우 ` false `을 반환합니다.
int QMqttTopicName::levelCount() const
토픽 레벨의 총 개수를 반환합니다.
QStringList QMqttTopicName::levels() const
토픽 레벨을 반환합니다.
QString QMqttTopicName::name() const
토픽 이름을 반환합니다.
setName()도 참조하십시오 .
void QMqttTopicName::setName(const QString &name)
토픽 이름을 name 로 설정합니다.
name()도 참조하십시오 .
[noexcept] void QMqttTopicName::swap(QMqttTopicName &other)
other 라는 MQTT 토픽 이름을 이 MQTT 토픽 이름으로 바꿉니다. 이 작업은 매우 빠르며 실패하는 일이 없습니다.
QMqttTopicName &QMqttTopicName::operator=(const QMqttTopicName &name)
이 객체에 MQTT 토픽 이름 name 을 할당하고, 복사본에 대한 참조를 반환합니다.
관련 비회원
[noexcept] bool operator!=(const QMqttTopicName &lhs, const QMqttTopicName &rhs)
lhs 와 rhs 라는 토픽 이름이 서로 다른 경우 true 를 반환하고, 그렇지 않은 경우 false 를 반환합니다.
[noexcept] bool operator<(const QMqttTopicName &lhs, const QMqttTopicName &rhs)
토픽 이름 lhs 이 토픽 이름 rhs 보다 사전순으로 작을 경우 true 를 반환하고, 그렇지 않은 경우 false 를 반환합니다.
QDataStream &operator<<(QDataStream &out, const QMqttTopicName &name)
name 라는 토픽 이름을 out 스트림에 기록하고, 해당 스트림에 대한 참조를 반환합니다.
QDataStream 연산자의 형식항목도 참조하십시오 .
[noexcept] bool operator==(const QMqttTopicName &lhs, const QMqttTopicName &rhs)
lhs 와 rhs 라는 토픽 이름이 같으면 true 를 반환하고, 그렇지 않으면 false 를 반환합니다.
QDataStream &operator>>(QDataStream &in, QMqttTopicName &name)
스트림 in 에서 토픽 이름을 읽어와 name 에 할당하고, 해당 스트림에 대한 참조를 반환합니다.
QDataStream 연산자의 형식항목도 참조하십시오 .
© 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.