Making DALi public API typesafe using guaranteed types; uint8_t, uint32_t
[platform/core/uifw/dali-core.git] / dali / public-api / object / property-array.cpp
index e401f32..7fe8447 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -102,4 +102,21 @@ Property::Array& Property::Array::operator=( const Property::Array& other )
   return *this;
 }
 
+std::ostream& operator<<( std::ostream& stream, const Property::Array& array )
+{
+  stream << "Array(" << array.Count() << ") = [";
+  for( Property::Array::SizeType i=0; i<array.Count(); ++i )
+  {
+    if( i>0 )
+    {
+      stream << ", ";
+    }
+    stream << array.GetElementAt(i);
+  }
+  stream << "]";
+
+  return stream;
+}
+
+
 } // namespace Dali