MQTTSuite
Loading...
Searching...
No Matches
mqtt::mqttbroker::lib::MqttModel::MqttModelEntry Class Reference
Collaboration diagram for mqtt::mqttbroker::lib::MqttModel::MqttModelEntry:

Public Member Functions

 MqttModelEntry (const Mqtt *mqtt)
 ~MqttModelEntry ()
 MqttModelEntry (MqttModelEntry &&) noexcept=default
const MqttgetMqtt () const
std::string onlineSince () const
std::string onlineDuration () const

Private Attributes

const Mqttmqtt = nullptr

Detailed Description

Definition at line 73 of file MqttModel.h.

Constructor & Destructor Documentation

◆ MqttModelEntry() [1/2]

mqtt::mqttbroker::lib::MqttModel::MqttModelEntry::MqttModelEntry ( const Mqtt * mqtt)

Definition at line 190 of file MqttModel.cpp.

References mqtt.

Referenced by mqtt::mqttbroker::lib::MqttModel::addClient().

Here is the caller graph for this function:

◆ ~MqttModelEntry()

mqtt::mqttbroker::lib::MqttModel::MqttModelEntry::~MqttModelEntry ( )

Definition at line 194 of file MqttModel.cpp.

194 {
195 }

◆ MqttModelEntry() [2/2]

mqtt::mqttbroker::lib::MqttModel::MqttModelEntry::MqttModelEntry ( MqttModelEntry && )
defaultnoexcept

Member Function Documentation

◆ getMqtt()

const Mqtt * mqtt::mqttbroker::lib::MqttModel::MqttModelEntry::getMqtt ( ) const

Definition at line 205 of file MqttModel.cpp.

205 {
206 return mqtt;
207 }

References mqtt.

Referenced by mqtt::mqttbroker::lib::MqttModel::addEventReceiver(), and mqtt::mqttbroker::lib::MqttModel::getMqtt().

Here is the caller graph for this function:

◆ onlineDuration()

std::string mqtt::mqttbroker::lib::MqttModel::MqttModelEntry::onlineDuration ( ) const

Definition at line 201 of file MqttModel.cpp.

201 {
202 return mqtt->getMqttContext()->getSocketConnection()->getSocketContext()->getOnlineDuration();
203 }

References mqtt.

Referenced by mqtt::mqttbroker::lib::MqttModel::addClient(), and mqtt::mqttbroker::lib::MqttModel::addEventReceiver().

Here is the caller graph for this function:

◆ onlineSince()

std::string mqtt::mqttbroker::lib::MqttModel::MqttModelEntry::onlineSince ( ) const

Definition at line 197 of file MqttModel.cpp.

197 {
198 return mqtt->getMqttContext()->getSocketConnection()->getSocketContext()->getOnlineSince();
199 }

References mqtt.

Referenced by mqtt::mqttbroker::lib::MqttModel::addClient(), and mqtt::mqttbroker::lib::MqttModel::addEventReceiver().

Here is the caller graph for this function:

Member Data Documentation

◆ mqtt

const Mqtt* mqtt::mqttbroker::lib::MqttModel::MqttModelEntry::mqtt = nullptr
private

Definition at line 87 of file MqttModel.h.

Referenced by getMqtt(), MqttModelEntry(), onlineDuration(), and onlineSince().


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