|
SensESP 3.1.1
Universal Signal K sensor toolkit ESP32
|
#include <sensesp/system/saveable.h>
Public Member Functions | |
| FileSystemSaveable (const String &config_path) | |
| virtual bool | load () override |
| Load and populate the object from a persistent storage. | |
| virtual bool | save () override |
| Save the object to a persistent storage. | |
| virtual bool | clear () override |
| Delete the data from a persistent storage. | |
| bool | find_config_file (const String &config_path, String &filename) |
Public Member Functions inherited from sensesp::Saveable | |
| Saveable (const String &config_path) | |
| virtual bool | refresh () |
| Refresh the object. This may or may not access the persistent storage but is not expected to overwrite the object's state. | |
| const String & | get_config_path () const |
Public Member Functions inherited from sensesp::Serializable | |
| virtual bool | to_json (JsonObject &root) |
| virtual bool | from_json (const JsonObject &root) |
Additional Inherited Members | |
Protected Attributes inherited from sensesp::Saveable | |
| const String | config_path_ |
Definition at line 61 of file saveable.h.
|
inline |
Definition at line 63 of file saveable.h.
|
overridevirtual |
Delete the data from a persistent storage.
Reimplemented from sensesp::Saveable.
Definition at line 72 of file saveable.cpp.
| bool sensesp::FileSystemSaveable::find_config_file | ( | const String & | config_path, |
| String & | filename ) |
Definition at line 90 of file saveable.cpp.
|
overridevirtual |
Load and populate the object from a persistent storage.
Reimplemented from sensesp::Saveable.
Definition at line 8 of file saveable.cpp.
|
overridevirtual |
Save the object to a persistent storage.
Reimplemented from sensesp::Saveable.
Definition at line 41 of file saveable.cpp.