Added "mapping" section parser to Builder. 17/63417/3
authorDavid Steele <david.steele@samsung.com>
Fri, 26 Feb 2016 18:41:00 +0000 (18:41 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 30 Mar 2016 17:37:05 +0000 (10:37 -0700)
commit0695455c9e382f0b19d9e1062a384c32b91f0a38
tree31a009ed945df21d7b9d367e934ccda55069e527
parentd8cbd048a3d77a627c97eba193afd3c0514a789a
Added "mapping" section parser to Builder.

This can be used by any part of the builder to share objects: the
"mappings" section contains key:value pairs. Any value in the parsed
file that contains "<" + key + ">" is replaced by the corresponding
value from the "mappings" section.

Note also that values in the mapping section can also reference other
keys in the mapping section - there is cycle checking, and this will
leave a value empty on the second reference of a cycle.

test-button and test-animation-data test out some concepts that may
make their way into mainline codebase in the near future, such as a
parser to translate property maps into animation data.

Change-Id: I3bf0392c79861fc3433cefc0ad2a3fc610ff58da
16 files changed:
automated-tests/src/dali-toolkit/CMakeLists.txt
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-animation-data.cpp [new file with mode: 0644]
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-animation-data.h [new file with mode: 0644]
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-button.cpp [new file with mode: 0644]
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-button.h [new file with mode: 0644]
automated-tests/src/dali-toolkit/utc-Dali-Builder.cpp
dali-toolkit/devel-api/builder/tree-node.cpp
dali-toolkit/devel-api/builder/tree-node.h
dali-toolkit/internal/builder/builder-get-is.inl.h
dali-toolkit/internal/builder/builder-impl-debug.cpp [new file with mode: 0644]
dali-toolkit/internal/builder/builder-impl-debug.h [new file with mode: 0644]
dali-toolkit/internal/builder/builder-impl.cpp
dali-toolkit/internal/builder/builder-impl.h
dali-toolkit/internal/builder/builder-set-property.cpp
dali-toolkit/internal/builder/builder-set-property.h [new file with mode: 0644]
dali-toolkit/internal/file.list