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)
MQTT 토픽 이름 other 을 이 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)
out 스트림에 주제 이름 name 을 쓰고 스트림에 대한 참조를 반환합니다.
QDataStream 연산자의 형식을참조하십시오 .
[noexcept]
bool operator==(const QMqttTopicName &lhs, const QMqttTopicName &rhs)
주제 이름 lhs 과 rhs 이 같으면 true
을 반환하고, 그렇지 않으면 false
을 반환합니다.
QDataStream &operator>>(QDataStream &in, QMqttTopicName &name)
in 스트림에서 name 로 주제 이름을 읽고 스트림에 대한 참조를 반환합니다.
QDataStream 연산자의 형식을참조하세요 .
© 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.