async_mqtt 5.0.0
Loading...
Searching...
No Matches
async_mqtt::topic_sharename Class Reference

topic and sharename More...

#include <topic_sharename.hpp>

Public Member Functions

 topic_sharename (buffer all_topic)
 constructor
 
buffer consttopic () const
 Get topic.
 
buffer constsharename () const
 Get sharename.
 
buffer constall_topic () const
 Get all_topic.
 
 operator bool () const
 bool conversion
 

Friends

bool operator< (topic_sharename const &lhs, topic_sharename const &rhs)
 less than operator
 
bool operator== (topic_sharename const &lhs, topic_sharename const &rhs)
 equal operator
 

Detailed Description

topic and sharename

Constructor & Destructor Documentation

◆ topic_sharename()

async_mqtt::topic_sharename::topic_sharename ( buffer all_topic)
inline

constructor

Parameters
all_topicTopicFilter. It could contain sharename on MQTT v5.0.

Member Function Documentation

◆ all_topic()

buffer const & async_mqtt::topic_sharename::all_topic ( ) const
inline

Get all_topic.

If sharename is contained, $share/ prefix is contained.

Returns
all_topic that is given to the constructor.

◆ operator bool()

async_mqtt::topic_sharename::operator bool ( ) const
inline

bool conversion

Returns
if topic is empty (invalid) then return false, otherwise true.

◆ sharename()

buffer const & async_mqtt::topic_sharename::sharename ( ) const
inline

Get sharename.

Returns
sharename. If no sharename then return empty size buffer.

◆ topic()

buffer const & async_mqtt::topic_sharename::topic ( ) const
inline

Get topic.

Returns
topic

The documentation for this class was generated from the following file: