#include <persist.h>
Inheritance diagram for persistent_store:
Public Methods | |
void | revoke () |
Revoke the persistent store. | |
Protected Methods | |
void | save (const unsigned char *object) |
Save the object. | |
int | create (persist_id_t id, void *object, size_t len) |
Create or retrieve a persistent store. | |
persistent_store () | |
persistent_store (persist_id_t id, void *object, size_t len) | |
Declare a persistent object with external runtime storage. | |
Static Protected Methods | |
persistent_area_t * | find_store (persist_id_t id) |
Find a persistent store given its id. | |
persistent_area_t * | allocate_store (persist_id_t id, size_t len) |
Allocate a persistent area for an store. | |
persistent_area_t start_area | asm ("0xb000") |
persistent_area_t end_area | asm ("0xb200") |
Protected Attributes | |
persistent_area_t * | area |
Private Methods | |
persistent_store (const persistent_store &) | |
persistent_store & | operator= (const persistent_store &) |
The persistent_store class is the root of persistent objects. The persistent objects are saved in a transparent manner in eeprom. When the program starts, objects are initialized with the persistent store.
The persistent_store class is not intended to be used as is. Use persistent_object or persistent classes instead.
Definition at line 46 of file persist.h.