Definition CBORObject.h:40
virtual bool restore() override
Restore the CBOR object from the filesystem.
Definition CBORStorage.h:92
virtual ~CBORStorage()
Virtual destructor.
Definition CBORStorage.h:53
virtual bool clean() override
Clean the CBOR object and remove the storage file.
Definition CBORStorage.h:110
CBORObject mCbor
The CBOR object used for data serialization/deserialization.
Definition CBORStorage.h:117
virtual bool store() override
Store the CBOR object to the filesystem.
Definition CBORStorage.h:74
CBORStorage(const String &path)
Constructs a new CBORStorage object.
Definition CBORStorage.h:46
CBORObject & object()
Get access to the underlying CBORObject.
Definition CBORStorage.h:60
Storage(const String &path)
Constructs a Storage object for a specific file.
Definition Storage.h:74
virtual bool clean()
Clears data and removes the file from the file system.
Definition Storage.h:189
Bytes mData
The byte array containing the data to be stored or the loaded data.
Definition Storage.h:205
virtual bool store()
Writes the current data to the file system.
Definition Storage.h:135
virtual bool restore()
Loads data from the file system into memory.
Definition Storage.h:165
Contains all classes and functions related to the Uniot Core.