#include <memory_storage_backend.hpp>
Public Member Functions | |
void | failOnSetCalls (bool really) |
virtual String | get (const String &key) const |
unsigned | getNumKeys () const |
MemoryStorageBackend () | |
void | print () const |
void | reset () |
virtual void | set (const String &key, const String &value) |
![]() | |
virtual | ~IStorageBackend () |
Private Types | |
typedef std::map< String, String > | Container |
Private Attributes | |
Container | container_ |
bool | fail_ |
Additional Inherited Members | |
![]() | |
enum | { MaxStringLength = 32 } |
enum | { MaxKeyValuePairs = 512 } |
typedef MakeString< MaxStringLength >::Type | String |
Definition at line 10 of file memory_storage_backend.hpp.
|
private |
Definition at line 12 of file memory_storage_backend.hpp.
|
inline |
Definition at line 18 of file memory_storage_backend.hpp.
|
inline |
Definition at line 40 of file memory_storage_backend.hpp.
Read one value from the storage. If such key does not exist, or if read failed, an empty string will be returned. This method should not block for more than 50 ms.
Implements uavcan::dynamic_node_id_server::IStorageBackend.
Definition at line 22 of file memory_storage_backend.hpp.
|
inline |
Definition at line 44 of file memory_storage_backend.hpp.
|
inline |
Definition at line 46 of file memory_storage_backend.hpp.
|
inline |
Definition at line 42 of file memory_storage_backend.hpp.
Create or update value for the given key. Empty value should be regarded as a request to delete the key. This method should not block for more than 50 ms. Failures will be ignored.
Implements uavcan::dynamic_node_id_server::IStorageBackend.
Definition at line 32 of file memory_storage_backend.hpp.
|
private |
Definition at line 13 of file memory_storage_backend.hpp.
|
private |
Definition at line 15 of file memory_storage_backend.hpp.