ESPHome  2024.11.0
Public Member Functions | Protected Attributes
esphome::ESPPreferenceObject Class Reference

#include <preferences.h>

Public Member Functions

 ESPPreferenceObject ()=default
 
 ESPPreferenceObject (ESPPreferenceBackend *backend)
 
template<typename T >
bool save (const T *src)
 
template<typename T >
bool load (T *dest)
 

Protected Attributes

ESPPreferenceBackendbackend_ {nullptr}
 

Detailed Description

Definition at line 16 of file preferences.h.

Constructor & Destructor Documentation

◆ ESPPreferenceObject() [1/2]

esphome::ESPPreferenceObject::ESPPreferenceObject ( )
default

◆ ESPPreferenceObject() [2/2]

esphome::ESPPreferenceObject::ESPPreferenceObject ( ESPPreferenceBackend backend)
inline

Definition at line 19 of file preferences.h.

Member Function Documentation

◆ load()

template<typename T >
bool esphome::ESPPreferenceObject::load ( T *  dest)
inline

Definition at line 27 of file preferences.h.

◆ save()

template<typename T >
bool esphome::ESPPreferenceObject::save ( const T *  src)
inline

Definition at line 21 of file preferences.h.

Field Documentation

◆ backend_

ESPPreferenceBackend* esphome::ESPPreferenceObject::backend_ {nullptr}
protected

Definition at line 34 of file preferences.h.


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