35 namespace StorageManager
43 , loadByteArrayCallback(0)
44 , storeByteArrayCallback(0)
45 , deleteByteArrayCallback(0)
49 void (*createCallback)(
const void* context,
int* errorCode );
50 void (*destroyCallback)(
const void* context,
int* errorCode );
51 void (*flushCallback)(
const void* context,
int* errorCode );
52 void (*loadByteArrayCallback)(
const void* context,
const id_type page, uint32_t* len, uint8_t** data,
int* errorCode );
53 void (*storeByteArrayCallback)(
const void* context,
id_type* page,
const uint32_t len,
const uint8_t*
const data,
int* errorCode );
54 void (*deleteByteArrayCallback)(
const void* context,
const id_type page,
int* errorCode );
61 static const int NoError = 0;
62 static const int InvalidPageError = 1;
63 static const int IllegalStateError = 2;
70 virtual void loadByteArray(
const id_type page, uint32_t& len, uint8_t** data);
71 virtual void storeByteArray(
id_type& page,
const uint32_t len,
const uint8_t*
const data);
72 virtual void deleteByteArray(
const id_type page);
77 inline void processErrorCode(
int errorCode,
const id_type page);
IStorageManager * returnCustomStorageManager(Tools::PropertySet &in)
CustomStorageManagerCallbacks()