SNode.C
Loading...
Searching...
No Matches
iot::mqtt_fast::Topic Class Reference

#include <Topic.h>

Collaboration diagram for iot::mqtt_fast::Topic:

Public Member Functions

 Topic (const std::string &name, uint8_t requestedQoS)
 
 Topic (const Topic &)=default
 
Topicoperator= (const Topic &)=default
 
 ~Topic ()
 
const std::string & getName () const
 
uint8_t getRequestedQoS () const
 

Private Attributes

std::string name
 
uint8_t requestedQoS
 

Detailed Description

Definition at line 54 of file Topic.h.

Constructor & Destructor Documentation

◆ Topic() [1/2]

iot::mqtt_fast::Topic::Topic ( const std::string &  name,
uint8_t  requestedQoS 
)

Definition at line 50 of file Topic.cpp.

51 : name(name)
53 }
uint8_t requestedQoS
Definition Topic.h:68
std::string name
Definition Topic.h:67

References name, and requestedQoS.

◆ Topic() [2/2]

iot::mqtt_fast::Topic::Topic ( const Topic )
default

◆ ~Topic()

iot::mqtt_fast::Topic::~Topic ( )

Definition at line 55 of file Topic.cpp.

55 {
56 }

Member Function Documentation

◆ getName()

const std::string & iot::mqtt_fast::Topic::getName ( ) const

Definition at line 58 of file Topic.cpp.

58 {
59 return name;
60 }

References name.

Referenced by iot::mqtt_fast::packets::Subscribe::Subscribe().

Here is the caller graph for this function:

◆ getRequestedQoS()

uint8_t iot::mqtt_fast::Topic::getRequestedQoS ( ) const

Definition at line 62 of file Topic.cpp.

62 {
63 return requestedQoS;
64 }

References requestedQoS.

Referenced by iot::mqtt_fast::packets::Subscribe::Subscribe().

Here is the caller graph for this function:

◆ operator=()

Topic & iot::mqtt_fast::Topic::operator= ( const Topic )
default

Member Data Documentation

◆ name

std::string iot::mqtt_fast::Topic::name
private

Definition at line 67 of file Topic.h.

Referenced by getName(), and Topic().

◆ requestedQoS

uint8_t iot::mqtt_fast::Topic::requestedQoS
private

Definition at line 68 of file Topic.h.

Referenced by getRequestedQoS(), and Topic().


The documentation for this class was generated from the following files: