mqtt_cpp
Public Member Functions | Public Attributes | List of all members
MQTT_NS::v5::basic_pubrel_message< PacketIdBytes > Struct Template Reference

#include <v5_message.hpp>

Public Member Functions

 basic_pubrel_message (typename packet_id_type< PacketIdBytes >::type packet_id, v5::pubrel_reason_code reason_code, properties props)
 
 basic_pubrel_message (buffer buf)
 
std::vector< as::const_buffer > const_buffer_sequence () const
 Create const buffer sequence it is for boost asio APIs. More...
 
std::size_t size () const
 Get whole size of sequence. More...
 
constexpr std::size_t num_of_const_buffer_sequence () const
 Get number of element of const_buffer_sequence. More...
 
std::string continuous_buffer () const
 Create one continuours buffer. All sequence of buffers are concatinated. It is useful to store to file/database. More...
 
decltype(auto) packet_id () const
 Get packet id. More...
 
v5::pubrel_reason_code reason_code () const
 Get reason_code. More...
 
properties const & props () const
 Get properties. More...
 

Public Attributes

std::uint8_t fixed_header_
 
std::size_t remaining_length_
 
boost::container::static_vector< char, 4 > remaining_length_buf_
 
boost::container::static_vector< char, PacketIdBytes > packet_id_
 
v5::pubrel_reason_code reason_code_
 
std::size_t property_length_
 
boost::container::static_vector< char, 4 > property_length_buf_
 
properties props_
 
std::size_t num_of_const_buffer_sequence_
 

Constructor & Destructor Documentation

◆ basic_pubrel_message() [1/2]

template<std::size_t PacketIdBytes>
MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::basic_pubrel_message ( typename packet_id_type< PacketIdBytes >::type  packet_id,
v5::pubrel_reason_code  reason_code,
properties  props 
)
inline

◆ basic_pubrel_message() [2/2]

template<std::size_t PacketIdBytes>
MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::basic_pubrel_message ( buffer  buf)
inline

Member Function Documentation

◆ const_buffer_sequence()

template<std::size_t PacketIdBytes>
std::vector<as::const_buffer> MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::const_buffer_sequence ( ) const
inline

Create const buffer sequence it is for boost asio APIs.

Returns
const buffer sequence

◆ continuous_buffer()

template<std::size_t PacketIdBytes>
std::string MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::continuous_buffer ( ) const
inline

Create one continuours buffer. All sequence of buffers are concatinated. It is useful to store to file/database.

Returns
continuous buffer

◆ num_of_const_buffer_sequence()

template<std::size_t PacketIdBytes>
constexpr std::size_t MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::num_of_const_buffer_sequence ( ) const
inlineconstexpr

Get number of element of const_buffer_sequence.

Returns
number of element of const_buffer_sequence

◆ packet_id()

template<std::size_t PacketIdBytes>
decltype(auto) MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::packet_id ( ) const
inline

Get packet id.

Returns
packet_id

◆ props()

template<std::size_t PacketIdBytes>
properties const& MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::props ( ) const
inline

Get properties.

Returns
properties

◆ reason_code()

template<std::size_t PacketIdBytes>
v5::pubrel_reason_code MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::reason_code ( ) const
inline

Get reason_code.

Returns
reason_code

◆ size()

template<std::size_t PacketIdBytes>
std::size_t MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::size ( ) const
inline

Get whole size of sequence.

Returns
whole size

Member Data Documentation

◆ fixed_header_

template<std::size_t PacketIdBytes>
std::uint8_t MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::fixed_header_

◆ num_of_const_buffer_sequence_

template<std::size_t PacketIdBytes>
std::size_t MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::num_of_const_buffer_sequence_

◆ packet_id_

template<std::size_t PacketIdBytes>
boost::container::static_vector<char, PacketIdBytes> MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::packet_id_

◆ property_length_

template<std::size_t PacketIdBytes>
std::size_t MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::property_length_

◆ property_length_buf_

template<std::size_t PacketIdBytes>
boost::container::static_vector<char, 4> MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::property_length_buf_

◆ props_

template<std::size_t PacketIdBytes>
properties MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::props_

◆ reason_code_

template<std::size_t PacketIdBytes>
v5::pubrel_reason_code MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::reason_code_

◆ remaining_length_

template<std::size_t PacketIdBytes>
std::size_t MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::remaining_length_

◆ remaining_length_buf_

template<std::size_t PacketIdBytes>
boost::container::static_vector<char, 4> MQTT_NS::v5::basic_pubrel_message< PacketIdBytes >::remaining_length_buf_

The documentation for this struct was generated from the following file: