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 MQTT_LIB_PLUGINS_STORAGE_PLUGIN_STORAGE_H
43#define MQTT_LIB_PLUGINS_STORAGE_PLUGIN_STORAGE_H
46#pragma GCC diagnostic push
48#if __has_warning
("-Wcovered-switch-default")
49#pragma GCC diagnostic ignored "-Wcovered-switch-default"
51#if __has_warning
("-Wnrvo")
52#pragma GCC diagnostic ignored "-Wnrvo"
56#include "lib/inja.hpp"
58#pragma GCC diagnostic pop
61#ifndef DOXYGEN_SHOULD_SKIP_THIS
95 std::map<std::string, std::string>
storage;
std::vector< mqtt::lib::Function > functions
std::vector< mqtt::lib::VoidFunction > voidFunctions
static void store(const inja::Arguments &args)
static double recall_as_float(const inja::Arguments &args)
static const std::string & recall(const inja::Arguments &args)
static bool exists(const inja::Arguments &args)
static bool is_empty(const inja::Arguments &args)
Storage & operator=(const Storage &)=delete
static int recall_as_int(const inja::Arguments &args)
std::map< std::string, std::string > storage
Storage(const Storage &)=delete
static Storage & instance()
std::vector< const nlohmann::json * > Arguments