#include <ArrayListKeyValueStore.h>
Inheritance diagram for ArrayListKeyValueStore:


Public Member Functions | |
| virtual StringBuffer | readPropertyValue (const char *prop) const |
| Read a property value from the data ArrayList. | |
| virtual int | setPropertyValue (const char *prop, const char *value) |
| Sets a property value. | |
| virtual int | removeProperty (const char *prop) |
| Remove a certain property from the data ArrayList. | |
| virtual Enumeration & | getProperties () const |
| Read all the properties that are in the store. | |
| virtual int | save ()=0 |
| Save the current properties that are in the data arraylist. | |
Protected Attributes | |
| ArrayListEnumeration | data |
| The list contains the pair key/value that are what is in the file that is in the form key:value. | |
It provides methods that has to be specialized by implementation on filesystem, registry, db...
| virtual int ArrayListKeyValueStore::setPropertyValue | ( | const char * | prop, | |
| const char * | value | |||
| ) | [virtual] |
Sets a property value.
The value might be cached inside the implementation of this interface. To ensure that it is stored persistently and to do error checking, call save().
| prop | - the property name | |
| value | - the property value (zero terminated string) |
Implements KeyValueStore.
| virtual int ArrayListKeyValueStore::removeProperty | ( | const char * | prop | ) | [virtual] |
Remove a certain property from the data ArrayList.
| prop | the name of the property which is to be removed |
Implements KeyValueStore.
| virtual Enumeration& ArrayListKeyValueStore::getProperties | ( | ) | const [inline, virtual] |
Read all the properties that are in the store.
This is an enumeration of KeyValuePairs.
Implements KeyValueStore.
| virtual int ArrayListKeyValueStore::save | ( | ) | [pure virtual] |
Save the current properties that are in the data arraylist.
Implements KeyValueStore.
Implemented in PropertyFile.
1.5.1