#include <inttypes.h>
#include <string>
#include "roo_prefs/collection.h"
#include "roo_prefs/status.h"
#include "roo_prefs/transaction.h"
Go to the source code of this file.
|
| class | roo_prefs::Pref< T > |
| | Persistent preference of a specific type. The preference will store its value in the preferences collection provided in the constructor, under the specified key (which needs to remain constant). The value is read lazily (on first access.) You can provide default value to be used if the collection does not contain the specified key. The value is cached in memory - subsequent reads will return the cached value. Writes always write to the persistent storage (and also, update the cache.) Read and write are performed within implicitly created transactions. If you have multiple properties that you want to read/write at the same time, you can read them under an explicit transaction: More...
|
| |
|
| namespace | roo_prefs |
| | Similar to Pref<T>, but does not immediately store written data in persistent storage. Instead, writes with a delay, which depends on whether the data stabilized or keeps changing.
|
| |
| namespace | roo_prefs::internal |
| | Implementation details follow.
|
| |