Implement [] and iteration for OCRepresentation
authorErich Keane <erich.keane@intel.com>
Wed, 7 Jan 2015 21:09:55 +0000 (13:09 -0800)
committerSashi Penta <sashi.kumar.penta@intel.com>
Sat, 14 Feb 2015 07:15:26 +0000 (07:15 +0000)
commitb3a1fd3f7663b722a0d7e178605a9d14b23fc9eb
tree72b69bbe75e34ef61e21426c34e5b888bbb58d2c
parent805d041060261a085e995487b58391f2b8b61bf4
Implement [] and iteration for OCRepresentation

Multiple requests have come in to be able to access the contents
of OCRepresentation in an easier to use manner.  This fix allows
OCRepresentation to be indexed using the [] operator and also
be iterated in an STL compliant fashion.

Additionally, this adds more than 40 tests for this functionality

Change-Id: Ibfc4bc61493324e118c4a6b67efc1d66e8b66b04
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/116
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
(cherry picked from commit 529bb98b884ca4db27b7659f966075a8680fa3c3)
Reviewed-on: https://gerrit.iotivity.org/gerrit/325
Tested-by: Sashi Penta <sashi.kumar.penta@intel.com>
resource/examples/garageclient.cpp
resource/examples/garageserver.cpp
resource/include/AttributeValue.h
resource/include/OCRepresentation.h
resource/include/OCUtilities.h
resource/src/OCRepresentation.cpp
resource/unittests/OCRepresentationTest.cpp [new file with mode: 0644]
resource/unittests/makefile