topic and sharename
More...
#include <topic_sharename.hpp>
|
template<typename AllTopic , typename std::enable_if_t< std::is_convertible_v< std::decay_t< AllTopic >, std::string_view >, std::nullptr_t > = nullptr> |
| topic_sharename (AllTopic &&all_topic) |
| constructor
|
|
std::string const & | topic () const |
| Get topic.
|
|
std::string const & | sharename () const |
| Get sharename.
|
|
std::string const & | all_topic () const |
| Get all_topic.
|
|
| operator bool () const |
| bool conversion
|
|
topic and sharename
Thread Safety
- Distinct objects: Safe
- Shared objects: Unsafe
Requirements
◆ topic_sharename()
template<typename AllTopic , typename std::enable_if_t< std::is_convertible_v< std::decay_t< AllTopic >, std::string_view >, std::nullptr_t > = nullptr>
async_mqtt::topic_sharename::topic_sharename |
( |
AllTopic && | all_topic | ) |
|
|
inline |
constructor
- Parameters
-
all_topic | TopicFilter. It could contain sharename on MQTT v5.0. |
◆ all_topic()
std::string 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()
std::string const & async_mqtt::topic_sharename::sharename |
( |
| ) |
const |
|
inline |
Get sharename.
- Returns
- sharename. If no sharename then return empty size std::string.
◆ topic()
std::string const & async_mqtt::topic_sharename::topic |
( |
| ) |
const |
|
inline |
◆ operator<
less than operator
- Parameters
-
lhs | compare target |
rhs | compare target |
- Returns
- true if the lhs less than the rhs, otherwise false.
◆ operator==
equal operator
- Parameters
-
lhs | compare target |
rhs | compare target |
- Returns
- true if the lhs equal to the rhs, otherwise false.
The documentation for this class was generated from the following file: