#pragma once #include #include namespace roro { // Persistent key/value storage (NVS on the device, a map in tests). Keys are at most 15 chars. class KeyValueStore { public: virtual ~KeyValueStore() = default; virtual bool getInt(const char* key, int32_t& out) = 0; virtual bool getString(const char* key, std::string& out) = 0; virtual void putInt(const char* key, int32_t value) = 0; virtual void putString(const char* key, const std::string& value) = 0; }; } // namespace roro