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

Public Member Functions

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

Private Attributes

Mqttmqtt = nullptr

Detailed Description

Definition at line 76 of file MqttModel.h.

Constructor & Destructor Documentation

◆ MqttModelEntry() [1/3]

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

◆ MqttModelEntry() [2/3]

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

Definition at line 163 of file MqttModel.cpp.

References mqtt.

◆ ~MqttModelEntry()

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

Definition at line 167 of file MqttModel.cpp.

167 {
168 }

◆ MqttModelEntry() [3/3]

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

Member Function Documentation

◆ getMqtt()

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

Definition at line 178 of file MqttModel.cpp.

178 {
179 return mqtt;
180 }

References mqtt.

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

Here is the caller graph for this function:

◆ onlineDuration()

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

Definition at line 174 of file MqttModel.cpp.

174 {
175 return mqtt->getMqttContext()->getSocketConnection()->getSocketContext()->getOnlineDuration();
176 }

References mqtt.

Referenced by mqtt::mqttbroker::lib::MqttModel::to_json.

Here is the caller graph for this function:

◆ onlineSince()

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

Definition at line 170 of file MqttModel.cpp.

170 {
171 return mqtt->getMqttContext()->getSocketConnection()->getSocketContext()->getOnlineSince();
172 }

References mqtt.

Referenced by mqtt::mqttbroker::lib::MqttModel::to_json.

Here is the caller graph for this function:

Member Data Documentation

◆ mqtt

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

Definition at line 91 of file MqttModel.h.

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


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