~aleteoryx/muditaos

ref: a70d82fd7e888ede4b8d6aa9a5ce6339019b3d3a muditaos/module-services/service-db/service-db/SettingsCache.hpp -rw-r--r-- 521 bytes
a70d82fd — Paweł Joński [BH-779] Merge service-alarm into service-time 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include "SettingsMessages.hpp"
#include <map>

namespace settings
{
    class SettingsCache
    {
      public:
        const std::string &getValue(const EntryPath &path) const;
        void setValue(const EntryPath &path, const std::string &value);
        static SettingsCache *getInstance();
        virtual ~SettingsCache() = default;
    };
} // namespace settings