ESPHome  2024.5.4
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 ( )

◆ ESPPreferenceObject() [2/2]

esphome::ESPPreferenceObject::ESPPreferenceObject ( ESPPreferenceBackend backend)

Definition at line 19 of file preferences.h.

Member Function Documentation

◆ load()

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

Definition at line 27 of file preferences.h.

◆ save()

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

Definition at line 21 of file preferences.h.

Field Documentation

◆ backend_

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

Definition at line 34 of file preferences.h.

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