subsscription entry
More...
#include <topic_subopts.hpp>
subsscription entry
Thread Safety
- Distinct objects: Safe
- Shared objects: Unsafe
Requirements
◆ topic_subopts()
async_mqtt::topic_subopts::topic_subopts |
( |
std::string | all_topic, |
|
|
sub::opts | opts ) |
|
inline |
constructor
- Parameters
-
all_topic | TopicFilter. It could contain sharename on MQTT v5.0. |
opts | subscribe options |
◆ all_topic()
std::string const & async_mqtt::topic_subopts::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_subopts::operator bool |
( |
| ) |
const |
|
inline |
bool conversion
- Returns
- if topic is empty (invalid) then return false, otherwise true.
◆ opts()
sub::opts const & async_mqtt::topic_subopts::opts |
( |
| ) |
const |
|
inline |
Get subscribe options.
- Returns
- subscribe options
◆ sharename()
std::string const & async_mqtt::topic_subopts::sharename |
( |
| ) |
const |
|
inline |
Get sharename.
- Returns
- sharename. If no sharename then return empty size std::string.
◆ topic()
std::string const & async_mqtt::topic_subopts::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: