ESPHome  2021.11.3
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 15 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 18 of file preferences.h.

Member Function Documentation

◆ load()

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

Definition at line 26 of file preferences.h.

◆ save()

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

Definition at line 20 of file preferences.h.

Field Documentation

◆ backend_

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

Definition at line 33 of file preferences.h.


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