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

#include <Topic.h>

Collaboration diagram for iot::mqtt::Topic:

Public Member Functions

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

Private Attributes

std::string name
 
uint8_t qoS
 

Detailed Description

Definition at line 54 of file Topic.h.

Constructor & Destructor Documentation

◆ Topic() [1/2]

iot::mqtt::Topic::Topic ( const std::string & name,
uint8_t qoS )

Definition at line 50 of file Topic.cpp.

51 : name(name)
52 , qoS(qoS) {
53 }
std::string name
Definition Topic.h:67
uint8_t qoS
Definition Topic.h:68

References qoS, and Topic().

Referenced by Topic().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Topic() [2/2]

iot::mqtt::Topic::Topic ( const Topic & )
default

◆ ~Topic()

iot::mqtt::Topic::~Topic ( )

Definition at line 55 of file Topic.cpp.

55 {
56 }

Member Function Documentation

◆ getName()

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

Definition at line 58 of file Topic.cpp.

58 {
59 return name;
60 }

◆ getQoS()

uint8_t iot::mqtt::Topic::getQoS ( ) const

Definition at line 62 of file Topic.cpp.

62 {
63 return qoS;
64 }

References qoS.

◆ operator=()

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

Member Data Documentation

◆ name

std::string iot::mqtt::Topic::name
private

Definition at line 67 of file Topic.h.

◆ qoS

uint8_t iot::mqtt::Topic::qoS
private

Definition at line 68 of file Topic.h.

Referenced by getQoS(), and Topic().


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