![]() |
libdisplaydevice master
C++ library to modify display devices.
|
Implementation of the SettingsPersistenceInterface, that saves/loads the persistent settings to/from the file. More...
#include <src/common/include/display_device/file_settings_persistence.h>
Public Member Functions | |
| bool | clear () override |
| Clear the persistent settings data. | |
| FileSettingsPersistence (std::filesystem::path filepath) | |
| std::optional< std::vector< std::uint8_t > > | load () const override |
| Load saved settings data. | |
| bool | store (const std::vector< std::uint8_t > &data) override |
| Store the provided data. | |
Public Member Functions inherited from display_device::SettingsPersistenceInterface | |
| virtual | ~SettingsPersistenceInterface ()=default |
| Default virtual destructor. | |
Implementation of the SettingsPersistenceInterface, that saves/loads the persistent settings to/from the file.
|
explicit |
Default constructor. Does not perform any operations on the file yet.
| filepath | A non-empty filepath. Throws on empty. |
|
nodiscardoverridevirtual |
Clear the persistent settings data.
*Examples**
Implements display_device::SettingsPersistenceInterface.
|
nodiscardoverridevirtual |
Load saved settings data.
*Examples**
Implements display_device::SettingsPersistenceInterface.
|
nodiscardoverridevirtual |
Store the provided data.
| data | Data array to store. |
*Examples**
Implements display_device::SettingsPersistenceInterface.