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>
Wed, 11 Feb 2015 18:55:36 +0000 (18:55 +0000)
commit529bb98b884ca4db27b7659f966075a8680fa3c3
treece4ba5b4d55ec26ba081a8d39fbc1db15213a5d0
parent061a9bc4c0ef896016ea94ebf17c18c55a28e799
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>
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