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 BRIDGECONFIGLOADER_H
43#define BRIDGECONFIGLOADER_H
45#include "lib/Bridge.h"
47#ifndef DOXYGEN_SHOULD_SKIP_THIS
49#include "nlohmann/json-schema.hpp"
52#include <nlohmann/json.hpp>
BridgeStore(BridgeStore &&)=delete
nlohmann::json bridgesConfigJsonActive
std::map< const std::string, Bridge > bridgeMap
void mqttConnected(Broker &broker, mqtt::bridge::lib::Mqtt *mqtt) const
Broker * getBroker(const std::string &fullInstanceName)
const std::map< const std::string, Bridge > & getBridgeMap()
BridgeStore(const BridgeStore &)=delete
BridgeStore & operator=(const BridgeStore &&)=delete
static BridgeStore & instance()
void mqttDisconnected(Broker &broker, mqtt::bridge::lib::Mqtt *mqtt) const
nlohmann::json_schema::json_validator validator
nlohmann::json bridgesConfigJsonStaged
BridgeStore & operator=(const BridgeStore &)=delete
bool loadAndValidate(const std::string &fileName)
const nlohmann::json & getBridgesConfigJson()
const std::map< std::string, Broker > & getBrokers() const
bool patch(const nlohmann::json &jsonPatch)
void addMqtt(mqtt::bridge::lib::Mqtt *mqtt)
void removeMqtt(mqtt::bridge::lib::Mqtt *mqtt)
Bridge & getBridge() const
static SSEDistributor & instance()
void set_root_schema(const json &)
json validate(const json &) const
static std::pair< std::string, std::string > split_plus(const std::string &s)