persistent_store class Reference






Misc >
Help >
FAQ >


Links >



persistent_store Class Reference

#include <persist.h>

Inheritance diagram for persistent_store:

List of all members.

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


Private Methods

persistent_store (const persistent_store &)
persistent_store & operator= (const persistent_store &)

Detailed Description

Persistent store class.

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.

See also:
persistent_object, persistent

Definition at line 46 of file persist.h.The documentation for this class was generated from the following file:

Copyright (C) 1999, 2000, 2001, 2002, 2003 Stéphane Carrez, France
Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


AltStyle によって変換されたページ (->オリジナル) /