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 32 of file Topic.h.

Constructor & Destructor Documentation

◆ Topic() [1/2]

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

Definition at line 28 of file Topic.cpp.

29 : name(name)
30 , qoS(qoS) {
31 }
std::string name
Definition Topic.h:45
uint8_t qoS
Definition Topic.h:46

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 33 of file Topic.cpp.

33 {
34 }

Member Function Documentation

◆ getName()

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

Definition at line 36 of file Topic.cpp.

36 {
37 return name;
38 }

◆ getQoS()

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

Definition at line 40 of file Topic.cpp.

40 {
41 return qoS;
42 }

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 45 of file Topic.h.

◆ qoS

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

Definition at line 46 of file Topic.h.

Referenced by getQoS(), and Topic().


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