Implemented OCRepresentation::setChildren
authorErich Keane <erich.keane@intel.com>
Tue, 24 Mar 2015 19:36:01 +0000 (12:36 -0700)
committerSudarshan Prasad <sudarshan.prasad@intel.com>
Tue, 24 Mar 2015 23:39:35 +0000 (23:39 +0000)
As reported in IOT 410, setChildren had a header entry, and
no implementation. This patch implements setChildren

Change-Id: I0f881dab27c09d72fd068c0b2d446bbfcc77a42b
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/562
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
resource/src/OCRepresentation.cpp

index fd01b52..446f197 100644 (file)
@@ -201,6 +201,11 @@ namespace OC
         return m_children;
     }
 
+    void OCRepresentation::setChildren(const std::vector<OCRepresentation>& children)
+    {
+        m_children = children;
+    }
+
     void OCRepresentation::setUri(const std::string& uri)
     {
         m_uri = uri;