![]() |
PahoMqttCpp
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_IDENTIFIER = 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, uint32_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 |
| std::string_view | type_name () const |
| const std::type_info & | value_type_id () |
Static Public Attributes | |
| static PAHO_MQTTPP_EXPORT const std::map< code, std::string_view > | TYPE_NAME |
Friends | |
| class | properties |
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 |
|
inline |
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 |
|
inlineexplicit |
Creates a property from a C struct.
| cprop | A C struct for a property list. |
|
inlineexplicit |
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. |
|
inline |
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).
| std::string_view mqtt::property::type_name | ( | ) | const |
Gets a printable name for the property type.
| const std::type_info & mqtt::property::value_type_id | ( | ) |
Gets the typeid for the value contained in the property.
|
friend |
|
static |
The names of the different types of properties