|
SNode.C
|
#include <Subscribe.h>
Public Member Functions | |
| Subscribe () | |
| Subscribe (uint16_t packetIdentifier, const std::list< iot::mqtt::Topic > &topics) | |
| uint16_t | getPacketIdentifier () const |
| const std::list< iot::mqtt::Topic > & | getTopics () const |
Public Member Functions inherited from iot::mqtt::ControlPacket | |
| ControlPacket (uint8_t type, const std::string &name) | |
| ControlPacket (const ControlPacket &)=default | |
| ControlPacket (ControlPacket &&)=default | |
| virtual | ~ControlPacket () |
| ControlPacket & | operator= (const ControlPacket &)=default |
| ControlPacket & | operator= (ControlPacket &&)=default |
| std::vector< char > | serialize () const |
| const std::string & | getName () const |
Protected Attributes | |
| iot::mqtt::types::UInt16 | packetIdentifier |
| std::list< iot::mqtt::Topic > | topics |
Protected Attributes inherited from iot::mqtt::ControlPacket | |
| uint8_t | flags = 0 |
Private Member Functions | |
| std::vector< char > | serializeVP () const override |
Additional Inherited Members | |
Protected Member Functions inherited from iot::mqtt::ControlPacket | |
| uint8_t | getType () const |
| uint8_t | getFlags () const |
Definition at line 60 of file Subscribe.h.
| iot::mqtt::packets::Subscribe::Subscribe | ( | ) |
Definition at line 56 of file Subscribe.cpp.
References iot::mqtt::ControlPacket::ControlPacket().
Referenced by Subscribe().
| iot::mqtt::packets::Subscribe::Subscribe | ( | uint16_t | packetIdentifier, |
| const std::list< iot::mqtt::Topic > & | topics | ||
| ) |
Definition at line 60 of file Subscribe.cpp.
References iot::mqtt::types::UInt16::operator=(), packetIdentifier, Subscribe(), and topics.
Referenced by iot::mqtt::client::Mqtt::sendSubscribe().
| uint16_t iot::mqtt::packets::Subscribe::getPacketIdentifier | ( | ) | const |
Definition at line 82 of file Subscribe.cpp.
References packetIdentifier.
Referenced by iot::mqtt::server::Mqtt::_onSubscribe().
| const std::list< Topic > & iot::mqtt::packets::Subscribe::getTopics | ( | ) | const |
Definition at line 86 of file Subscribe.cpp.
References topics.
Referenced by iot::mqtt::server::Mqtt::_onSubscribe().
|
overrideprivatevirtual |
Implements iot::mqtt::ControlPacket.
Definition at line 66 of file Subscribe.cpp.
References iot::mqtt::Topic::getName(), iot::mqtt::Topic::getQoS(), iot::mqtt::types::String::operator=(), packetIdentifier, iot::mqtt::types::TypeBase< ValueTypeT >::serialize(), iot::mqtt::types::String::serialize(), and topics.
|
protected |
Definition at line 73 of file Subscribe.h.
Referenced by iot::mqtt::server::packets::Subscribe::deserializeVP(), getPacketIdentifier(), serializeVP(), and Subscribe().
|
protected |
Definition at line 75 of file Subscribe.h.
Referenced by iot::mqtt::server::packets::Subscribe::deserializeVP(), getTopics(), serializeVP(), and Subscribe().