Skyward boardcore
Loading...
Searching...
No Matches
Boardcore::FileBackend Class Reference

#include <FileBackend.h>

Inheritance diagram for Boardcore::FileBackend:
Collaboration diagram for Boardcore::FileBackend:

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.
 

Detailed Description

Definition at line 32 of file FileBackend.h.

Constructor & Destructor Documentation

◆ FileBackend()

Boardcore::FileBackend::FileBackend ( std::string path)
inlineexplicit

Definition at line 35 of file FileBackend.h.

Member Function Documentation

◆ load()

bool Boardcore::FileBackend::load ( std::vector< uint8_t > & buf)
overridevirtual

Loads into the buffer the saved configuration from the storage/memory.

Parameters
bufThe buffer where the data will be loaded from the storage/memory if any is saved.
Returns
true if successful, false otherwise.

Implements Boardcore::RegistryBackend.

Definition at line 33 of file FileBackend.cpp.

◆ save()

bool Boardcore::FileBackend::save ( std::vector< uint8_t > & buf)
overridevirtual

Saves the data in the buf to the storage/memory.

Parameters
bufThe buf vector with the data to be saved.
Returns
true if successful, false otherwise.

Implements Boardcore::RegistryBackend.

Definition at line 48 of file FileBackend.cpp.

◆ start()

bool Boardcore::FileBackend::start ( )
overridevirtual

Starts the backend, eventually used in backends that need to start classes and other things e.g. an ActiveObject.

Returns
true if successful, false otherwise

Implements Boardcore::RegistryBackend.

Definition at line 31 of file FileBackend.cpp.


The documentation for this class was generated from the following files: