![]() |
paho-mqtt-cpp
MQTT C++ Client for POSIX and Windows
|
#include <properties.h>
Public Types | |
enum | code { PAYLOAD_FORMAT_INDICATOR = 1 , MESSAGE_EXPIRY_INTERVAL = 2 , CONTENT_TYPE = 3 , RESPONSE_TOPIC = 8 , CORRELATION_DATA = 9 , SUBSCRIPTION_IDENTIFIER = 11 , SESSION_EXPIRY_INTERVAL = 17 , ASSIGNED_CLIENT_IDENTIFER = 18 , SERVER_KEEP_ALIVE = 19 , AUTHENTICATION_METHOD = 21 , AUTHENTICATION_DATA = 22 , REQUEST_PROBLEM_INFORMATION = 23 , WILL_DELAY_INTERVAL = 24 , REQUEST_RESPONSE_INFORMATION = 25 , RESPONSE_INFORMATION = 26 , SERVER_REFERENCE = 28 , REASON_STRING = 31 , RECEIVE_MAXIMUM = 33 , TOPIC_ALIAS_MAXIMUM = 34 , TOPIC_ALIAS = 35 , MAXIMUM_QOS = 36 , RETAIN_AVAILABLE = 37 , USER_PROPERTY = 38 , MAXIMUM_PACKET_SIZE = 39 , WILDCARD_SUBSCRIPTION_AVAILABLE = 40 , SUBSCRIPTION_IDENTIFIERS_AVAILABLE = 41 , SHARED_SUBSCRIPTION_AVAILABLE = 42 } |
Public Member Functions | |
property (code c, int32_t val) | |
property (code c, string_ref val) | |
property (code c, string_ref name, string_ref val) | |
property (const MQTTProperty &cprop) | |
property (MQTTProperty &&cprop) | |
property (const property &other) | |
property (property &&other) | |
~property () | |
property & | operator= (const property &rhs) |
property & | operator= (property &&rhs) |
const MQTTProperty & | c_struct () const |
code | type () const |
const char * | type_name () const |
A single MQTT v5 property.
enum mqtt::property::code |
The integer codes for the different v5 properties.
mqtt::property::property | ( | code | c, |
int32_t | val ) |
Create a numeric property. This can be a byte, or 2-byte, 4-byte, or variable byte integer.
c | The property code |
val | The integer value for the property |
mqtt::property::property | ( | code | c, |
string_ref | val ) |
Create a string or binary property.
c | The property code |
val | The value for the property |
mqtt::property::property | ( | code | c, |
string_ref | name, | ||
string_ref | val ) |
Create a string pair property.
c | The property code |
name | The string name for the property |
val | The string value for the property |
|
explicit |
Creates a property list from an C struct.
cprop | A C struct for a property list. |
|
explicit |
Moves a C struct into this property list. This takes ownership of any memory that the C struct is holding.
cprop | A C struct for a property list. |
mqtt::property::property | ( | const property & | other | ) |
Copy constructor
other | The other property to copy into this one. |
mqtt::property::property | ( | property && | other | ) |
Move constructor.
other | The other property that is moved into this one. |
mqtt::property::~property | ( | ) |
Destructor
Copy assignment.
rhs | Another property list to copy into this one. |
Move assignment.
rhs | Another property list to move into this one. |
|
inline |
Gets the underlying C property struct.
|
inline |
Gets the property type (identifier).
|
inline |
Gets a printable name for the property type.