Bug Fix for constructing RCSRepresentation from OCRepresentation.
authorAbhishek Pandey <abhi.siso@samsung.com>
Thu, 21 Jul 2016 09:19:45 +0000 (14:49 +0530)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 22 Jul 2016 04:44:30 +0000 (04:44 +0000)
commit7b16d80e7e187b9e8501ccd095ff661f3e3aba60
treea743af7ababcb3060f6594727d2fd75894d874c7
parenta3a93ebcfcba49bda6b4623bdc38e0a4f0d134ee
Bug Fix for constructing RCSRepresentation from OCRepresentation.

When constructing RCSRepresentation object from OCRepresentation object
received from base layer, fromOCRepresentation() function does not attempt
to convert child representation objects in OCRepresentation object it receives
as input parameter.

This patch fixes this issue by adding code to iterate over child objects in
OCRepresentation and constructing an equivalent RCSRepresentation for them
recursively.

Change-Id: Ie9c3f6cfaebeb4ceb1c23a07647458414fef3afc
Signed-off-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9547
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Junghyun Oh <junghyun.oh@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
service/resource-encapsulation/src/common/primitiveResource/src/RCSRepresentation.cpp