The Pedigree Project  0.1
Public Member Functions | Protected Attributes | List of all members
ConfigurationBackend Class Referenceabstract

#include <ConfigurationBackend.h>

+ Inheritance diagram for ConfigurationBackend:
+ Collaboration diagram for ConfigurationBackend:

Public Member Functions

 ConfigurationBackend (const String &configStore)
 
virtual size_t createTable (const String &table)=0
 
virtual void insert (const String &table, const String &key, const ConfigValue &value)=0
 
virtual ConfigValueselect (const String &table, const String &key)=0
 
virtual void watch (const String &table, const String &key, ConfigurationWatcher watcher)=0
 
virtual void unwatch (const String &table, const String &key, ConfigurationWatcher watcher)=0
 
virtual const StringgetConfigStore ()
 
virtual const StringgetTypeName ()=0
 

Protected Attributes

String m_ConfigStore
 

Detailed Description

A configuration backend for the Pedigree configuration system.

By subclassing this class, it is possible to handle different methods for configuration (for instance, a backend for SQL, flat files, and pure memory access).

Definition at line 33 of file ConfigurationBackend.h.

Member Function Documentation

virtual void ConfigurationBackend::insert ( const String table,
const String key,
const ConfigValue value 
)
pure virtual

Inserts the value 'value' into the table 'table', with its key as 'key'

Implemented in MemoryBackend.

virtual ConfigValue& ConfigurationBackend::select ( const String table,
const String key 
)
pure virtual

Returns the value in table, with key matching 'key', or zero.

Implemented in MemoryBackend.

virtual void ConfigurationBackend::unwatch ( const String table,
const String key,
ConfigurationWatcher  watcher 
)
pure virtual

Remove a watcher from a table entry.

Implemented in MemoryBackend.

virtual void ConfigurationBackend::watch ( const String table,
const String key,
ConfigurationWatcher  watcher 
)
pure virtual

Watch a specific table entry.

Implemented in MemoryBackend.


The documentation for this class was generated from the following files: