Leosac  0.8.0
Open Source Access Control
Leosac::Module::Mqtt::MqttConfig Class Reference

Transient configuration object that stores the list of mqtt servers use/configure. More...

#include <MqttConfig.hpp>

+ Collaboration diagram for Leosac::Module::Mqtt::MqttConfig:

Public Member Functions

 MqttConfig ()=default
 
void add_server (std::shared_ptr< const MqttServerConfig >)
 
void add_topic (std::shared_ptr< const MqttExternalMessage >)
 
const std::vector< std::shared_ptr< const MqttServerConfig > > & servers () const
 
const std::vector< std::shared_ptr< const MqttExternalMessage > > & topics () const
 

Private Attributes

std::vector< std::shared_ptr< const MqttServerConfig > > servers_
 
std::vector< std::shared_ptr< const MqttExternalMessage > > topics_
 

Detailed Description

Transient configuration object that stores the list of mqtt servers use/configure.

This object is either populated from the database or from the XML configuration.

Definition at line 141 of file MqttConfig.hpp.

Constructor & Destructor Documentation

◆ MqttConfig()

Leosac::Module::Mqtt::MqttConfig::MqttConfig ( )
default

Member Function Documentation

◆ add_server()

void Leosac::Module::Mqtt::MqttConfig::add_server ( std::shared_ptr< const MqttServerConfig server)

Definition at line 31 of file MqttConfig.cpp.

◆ add_topic()

void Leosac::Module::Mqtt::MqttConfig::add_topic ( std::shared_ptr< const MqttExternalMessage topic)

Definition at line 41 of file MqttConfig.cpp.

◆ servers()

const std::vector< std::shared_ptr< const MqttServerConfig > > & Leosac::Module::Mqtt::MqttConfig::servers ( ) const

Definition at line 36 of file MqttConfig.cpp.

◆ topics()

const std::vector< std::shared_ptr< const MqttExternalMessage > > & Leosac::Module::Mqtt::MqttConfig::topics ( ) const

Definition at line 46 of file MqttConfig.cpp.

Member Data Documentation

◆ servers_

std::vector<std::shared_ptr<const MqttServerConfig> > Leosac::Module::Mqtt::MqttConfig::servers_
private

Definition at line 152 of file MqttConfig.hpp.

◆ topics_

std::vector<std::shared_ptr<const MqttExternalMessage> > Leosac::Module::Mqtt::MqttConfig::topics_
private

Definition at line 153 of file MqttConfig.hpp.


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