Added Property::Key type to properly represent keys in maps 52/88152/9
authorDavid Steele <david.steele@partner.samsung.com>
Tue, 13 Sep 2016 19:57:40 +0000 (20:57 +0100)
committerDavid Steele <david.steele@partner.samsung.com>
Fri, 16 Sep 2016 10:40:46 +0000 (11:40 +0100)
commit7e8106c4c6f4912f1a4528b7bb9df4359f66f21a
treee0880a702a56ab04ca8ec24e4ff5c3df8481fae8
parent144b10cc1eef2eb60727a4734c5d7dff47143331
Added Property::Key type to properly represent keys in maps

Currently, Property::Map can have either string or integer
keys. The two methods GetPair and GetKey only allow iteration
over string keys.

Have added a single Key type that enables the retrieval of all
keys of Property::Map via the two new methods GetKeyAt and GetKeyValue

Have un-deprecated GetValue, which is still valid.

Added a new method Handle::GetPropertyIndex( Property::Key ), which
allows a lookup of a property from a property map key.

This is useful to enable property maps to be used as a property
aggregator when setting values on objects.

Have updated Scripting and PropertyBuffer to use new Property::Map
interface rather than the deprecated interface.

Change-Id: Ie2db5355fd661ed73a6f92b720d92ca1e6ab8d76
Signed-off-by: David Steele <david.steele@samsung.com>
15 files changed:
automated-tests/src/dali/utc-Dali-Handle.cpp
automated-tests/src/dali/utc-Dali-PropertyMap.cpp
automated-tests/src/dali/utc-Dali-Scripting.cpp
dali/devel-api/scripting/scripting.cpp
dali/internal/event/common/object-impl.cpp
dali/internal/event/common/object-impl.h
dali/internal/event/common/property-buffer-impl.cpp
dali/public-api/file.list
dali/public-api/object/handle.cpp
dali/public-api/object/handle.h
dali/public-api/object/property-key.cpp [new file with mode: 0644]
dali/public-api/object/property-key.h [new file with mode: 0644]
dali/public-api/object/property-map.cpp
dali/public-api/object/property-map.h
dali/public-api/object/property.h