Skyward boardcore
|
#include <FileBackend.h>
Public Member Functions | |
FileBackend (std::string path) | |
bool | start () override |
Starts the backend, eventually used in backends that need to start classes and other things e.g. an ActiveObject. | |
bool | load (std::vector< uint8_t > &buf) override |
Loads into the buffer the saved configuration from the storage/memory. | |
bool | save (std::vector< uint8_t > &buf) override |
Saves the data in the buf to the storage/memory. | |
Definition at line 32 of file FileBackend.h.
|
inlineexplicit |
Definition at line 35 of file FileBackend.h.
|
overridevirtual |
Loads into the buffer the saved configuration from the storage/memory.
buf | The buffer where the data will be loaded from the storage/memory if any is saved. |
Implements Boardcore::RegistryBackend.
Definition at line 33 of file FileBackend.cpp.
|
overridevirtual |
Saves the data in the buf to the storage/memory.
buf | The buf vector with the data to be saved. |
Implements Boardcore::RegistryBackend.
Definition at line 48 of file FileBackend.cpp.
|
overridevirtual |
Starts the backend, eventually used in backends that need to start classes and other things e.g. an ActiveObject.
Implements Boardcore::RegistryBackend.
Definition at line 31 of file FileBackend.cpp.