1#ifndef SENSESP_SYSTEM_SAVEABLE_H_
2#define SENSESP_SYSTEM_SAVEABLE_H_
6#include <ArduinoJson.h>
28 virtual bool load() {
return false; }
46 virtual bool save() {
return false; }
53 virtual bool clear() {
return false; }
65 virtual bool load()
override;
66 virtual bool save()
override;
67 virtual bool clear()
override;
virtual bool clear() override
Delete the data from a persistent storage.
virtual bool load() override
Load and populate the object from a persistent storage.
virtual bool save() override
Save the object to a persistent storage.
FileSystemSaveable(const String &config_path)
bool find_config_file(const String &config_path, String &filename)
Interface for saveable objects.
virtual bool save()
Save the object to a persistent storage.
virtual bool clear()
Delete the data from a persistent storage.
virtual bool refresh()
Refresh the object. This may or may not access the persistent storage but is not expected to overwrit...
Saveable(const String &config_path)
const String & get_config_path() const
const String config_path_
virtual bool load()
Load and populate the object from a persistent storage.
Interface for serializable objects.