2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef IOT_MQTT_TYPES_STRINGPAIR_H
43#define IOT_MQTT_TYPES_STRINGPAIR_H
45#include "iot/mqtt/types/String.h"
46#include "iot/mqtt/types/TypeBase.h"
52#ifndef DOXYGEN_SHOULD_SKIP_THIS
60namespace iot::mqtt::
types {
65 StringPair(
const std::string& name,
const std::string& value);
75 std::vector<
char>
serialize()
const override;
83 void reset(std::size_t size = 0)
override;
std::vector< char > serialize() const override
StringPair & operator=(StringPair &&) noexcept=default
StringPair & operator=(const StringPair &)=default
StringPair(const std::string &name, const std::string &value)
void reset(std::size_t size=0) override
operator std::string() const
std::size_t deserialize(iot::mqtt::MqttContext *mqttContext) override
iot::mqtt::types::String name
StringPair & operator=(const std::string &newValue)
bool operator!=(const StringPair &rhsValue) const
StringPair(const StringPair &)=default
bool operator==(const StringPair &rhsValue) const
iot::mqtt::types::String value
std::size_t deserialize(iot::mqtt::MqttContext *mqttContext) override
void reset(std::size_t size=0) override
String(const std::string &value)
std::vector< char > serialize() const override