The Pedigree Project
0.1
|
#include <MemoryBackend.h>
Classes | |
struct | Table |
Public Member Functions | |
MemoryBackend (const String &configStore) | |
virtual size_t | createTable (const String &table) |
virtual void | insert (const String &table, const String &key, const ConfigValue &value) |
virtual ConfigValue & | select (const String &table, const String &key) |
virtual void | watch (const String &table, const String &key, ConfigurationWatcher watcher) |
virtual void | unwatch (const String &table, const String &key, ConfigurationWatcher watcher) |
const String & | getTypeName () |
Public Member Functions inherited from ConfigurationBackend | |
ConfigurationBackend (const String &configStore) | |
virtual const String & | getConfigStore () |
Private Attributes | |
RadixTree< Table * > | m_Tables |
String | m_TypeName |
Additional Inherited Members | |
Protected Attributes inherited from ConfigurationBackend | |
String | m_ConfigStore |
Memory configuration backend. Stores everything in RAM, won't save to file. Good for runtime-only information.
Definition at line 32 of file MemoryBackend.h.
|
virtual |
Inserts the value 'value' into the table 'table', with its key as 'key'
Implements ConfigurationBackend.
Definition at line 39 of file MemoryBackend.cc.
|
virtual |
Returns the value in table, with key matching 'key', or zero.
Implements ConfigurationBackend.
Definition at line 50 of file MemoryBackend.cc.
|
virtual |
Remove a watcher from a table entry.
Implements ConfigurationBackend.
Definition at line 89 of file MemoryBackend.cc.
|
virtual |
Watch a specific table entry.
Implements ConfigurationBackend.
Definition at line 67 of file MemoryBackend.cc.