2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef APPS_MQTTBROKER_MQTTBRIDGE_CONFIGBRIDGE_H
43#define APPS_MQTTBROKER_MQTTBRIDGE_CONFIGBRIDGE_H
49#include <utils/SubCommand.h>
51#ifndef DOXYGEN_SHOULD_SKIP_THIS
63 template <
typename ConcretConfigApplicationT>
64 ConfigApplication(utils::SubCommand* parent, ConcretConfigApplicationT* concretConfigApplication);
73 bool setMapping(
const std::string& mapping)
const;
93 constexpr static std::string_view
NAME{
"broker"};
94 constexpr static std::string_view
DESCRIPTION{
"Configuration for Application mqttbroker"};
109 constexpr static std::string_view
NAME{
"integrator"};
110 constexpr static std::string_view
DESCRIPTION{
"Configuration for Application mqttintegrator"};
std::string getMapping(int indent=2) const
bool loadMapping(const std::string mapFilename)
CLI::Option * sessionStoreOpt
std::string getMappingFilename() const
bool setMapping(const std::string &mapping) const
const std::shared_ptr< MqttMapper > getMqttMapper() const
bool setMappingFile(const std::string &mapFilename)
bool persistMapping() const
ConfigApplication & setSessionStore(const std::string &sessionStore)
ConfigApplication(utils::SubCommand *parent, ConcretConfigApplicationT *concretConfigApplication)
CLI::Option * mappingFileOpt
~ConfigApplication() override
std::shared_ptr< MqttMapper > mqttMapper
std::string getSessionStore() const
ConfigMqttBroker & setHtmlRoot(const std::string &htmlRoot)
std::string getHtmlRoot()
CLI::Option * htmlRootOpt
static constexpr std::string_view NAME
ConfigMqttBroker(utils::SubCommand *parent)
static constexpr std::string_view DESCRIPTION
~ConfigMqttBroker() override
static constexpr std::string_view DESCRIPTION
static constexpr std::string_view NAME
~ConfigMqttIntegrator() override
ConfigMqttIntegrator(utils::SubCommand *parent)
bool setMapping(nlohmann::json mappingJson)
const nlohmann::json & getMapping() const