#include <ContainerInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Inherited by DigitalSpaces::SettingMap.
The key is a string, where value is a Variant. The reference implementation is available as DigitalSpaces::SettingMap, in ContainerImplementations.h
Public Member Functions | |
| bool | hasValue (const char *key) |
| Check if the specified key has been entered into the SettingMap. | |
| void | getKeys (DIStringList1 *keys) |
| Return a list of all the keys in the SettingMap. | |
| DIVariant * | getValue (const char *key) |
| Extracts a value from the SettingMap. | |
| bool | insertValue (const char *key, DIVariant *value) |
| Insert a new value into the SettingMap. | |
| bool DigitalSpaces::DISettingMap::hasValue | ( | const char * | key | ) |
Check if the specified key has been entered into the SettingMap.
Reimplemented in DigitalSpaces::SettingMap.
| void DigitalSpaces::DISettingMap::getKeys | ( | DIStringList1 * | keys | ) |
Return a list of all the keys in the SettingMap.
| [out] | keys | A String List that will have the values of the keys appended to it. Note that the implementation does not clear the String List before adding values. |
Reimplemented in DigitalSpaces::SettingMap.
| DIVariant* DigitalSpaces::DISettingMap::getValue | ( | const char * | key | ) |
Extracts a value from the SettingMap.
If there is no entry of this value, it will return a new entry by that name. Note that this returned DIVariant is the data being stored inside the DISettingMap, not a copy. Thus, changing the data stored in the DIVariant will change the data in the map.
Reimplemented in DigitalSpaces::SettingMap.
| bool DigitalSpaces::DISettingMap::insertValue | ( | const char * | key, | |
| DIVariant * | value | |||
| ) |
Insert a new value into the SettingMap.
Returns true if sucessful. If an entry with this key already exists, it will not be altered. Note that the inserted value is copied, ie, changing the value variant will not change the data in the map.
Reimplemented in DigitalSpaces::SettingMap.
1.5.6