Add missing method for ResourceAttributes in Resource Manipulation Module
authorcoderhyme <jhyo.kim@samsung.com>
Tue, 14 Jul 2015 15:04:01 +0000 (00:04 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 15 Jul 2015 03:41:24 +0000 (03:41 +0000)
clear is a mandatory method for this class.

Change-Id: I5a4a571b9f8c85e06ca98214c42ac610a3cde9ba
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
Change-Id: I5a4a571b9f8c85e06ca98214c42ac610a3cde9ba
Reviewed-on: https://gerrit.iotivity.org/gerrit/1649
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/resource-manipulation/src/common/primitiveResource/include/ResourceAttributes.h
service/resource-manipulation/src/common/primitiveResource/src/ResourceAttributes.cpp

index 3dda5eb..f7afd77 100755 (executable)
@@ -262,6 +262,7 @@ namespace OIC
             Value& at(const std::string&);
             const Value& at(const std::string&) const;
 
+            void clear();
             bool erase(const std::string&);
 
             bool contains(const std::string&) const;
index aa74adb..4290eea 100755 (executable)
@@ -511,6 +511,11 @@ namespace OIC
             }
         }
 
+        void ResourceAttributes::clear()
+        {
+            return m_values.clear();
+        }
+
         bool ResourceAttributes::erase(const std::string& key)
         {
             return m_values.erase(key) == 1U;