Apply deprecate macro and LOG
[platform/core/uifw/dali-core.git] / dali / public-api / object / property-map.cpp
index f6d7775..2c2732d 100644 (file)
@@ -18,6 +18,9 @@
 // CLASS HEADER
 #include <dali/public-api/object/property-map.h>
 
+// EXTERNAL INCLUDES
+#include <dali/integration-api/debug.h>
+
 // INTERNAL INCLUDES
 #include <dali/public-api/common/vector-wrapper.h>
 
@@ -90,6 +93,8 @@ Property::Value& Property::Map::GetValue( SizeType position ) const
 
 const std::string& Property::Map::GetKey( SizeType position ) const
 {
+  DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: GetKey() is deprecated and will be removed from next release.\n" );
+
   DALI_ASSERT_ALWAYS( position < mImpl->mStringValueContainer.size() && "position out-of-bounds" );
 
   return mImpl->mStringValueContainer[ position ].first;
@@ -97,6 +102,8 @@ const std::string& Property::Map::GetKey( SizeType position ) const
 
 StringValuePair& Property::Map::GetPair( SizeType position ) const
 {
+  DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: GetPair() is deprecated and will be removed from next release.\n" );
+
   DALI_ASSERT_ALWAYS( position < mImpl->mStringValueContainer.size() && "position out-of-bounds" );
 
   return mImpl->mStringValueContainer[ position ];