2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
44#ifndef MQTTBROKER_LIB_JSONMAPPINGREADER_H
45#define MQTTBROKER_LIB_JSONMAPPINGREADER_H
47#ifndef DOXYGEN_SHOULD_SKIP_THIS
49#include <nlohmann/json_fwd.hpp>
65 static void saveDraft(
const std::string& mapFilePath,
const nlohmann::json& content);
68 static void discardDraft(
const std::string& mapFilePath);
69 static std::string
getDraftPath(
const std::string& mapFilePath);
79 static nlohmann::json
rollbackTo(
const std::string& mapFilePath,
const std::string& versionId);
CLI::Option * sessionStoreOpt
std::string getMappingFilename() const
const std::shared_ptr< MqttMapper > getMqttMapper() const
bool setMappingFile(const std::string &mappingFile)
ConfigApplication & setSessionStore(const std::string &sessionStore)
ConfigApplication(utils::SubCommand *parent, ConcretConfigApplicationT *concretConfigApplication)
CLI::Option * mappingFileOpt
~ConfigApplication() override
std::shared_ptr< MqttMapper > mqttMapper
bool setMapping(const nlohmann::json &json)
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)
static nlohmann::json deployDraft(const std::string &mapFilePath)
static nlohmann::json rollbackTo(const std::string &mapFilePath, const std::string &versionId)
JsonMappingReader()=delete
static void discardDraft(const std::string &mapFilePath)
static std::vector< VersionEntry > getHistory(const std::string &mapFilePath)
static nlohmann::json readMappingFromFile(const std::string &mapFilePath)
static nlohmann::json readDraftOrActive(const std::string &mapFilePath)
static std::string getDraftPath(const std::string &mapFilePath)
static void saveDraft(const std::string &mapFilePath, const nlohmann::json &content)
static nlohmann::json getDefaultPatch(const nlohmann::json &inputJson)
bool setMapping(nlohmann::json mappingJson)