Temporary types for PropertyValue debugging 28/136428/2
authorDavid Steele <david.steele@samsung.com>
Fri, 8 Apr 2016 11:12:26 +0000 (12:12 +0100)
committerDavid Steele <david.steele@samsung.com>
Thu, 29 Jun 2017 12:39:09 +0000 (13:39 +0100)
Note, adds global variables under DEBUG build only.

Change-Id: Id40e68cb565fe03d3c0304acae9c2375c1e603b3

dali/integration-api/debug.cpp
dali/integration-api/debug.h

index dc6a90c..2624818 100644 (file)
 namespace Dali
 {
 
+#ifdef DEBUG_ENABLED
+
+// Fake globals for gdb typedefs
+Dali::DebugPropertyValueArray gValueArray;
+Dali::DebugPropertyValueMap   gValueMap;
+
+#endif
+
+
 namespace // unnamed namespace
 {
 
index b22a5fe..6ba890d 100644 (file)
@@ -23,6 +23,8 @@
 #include <sstream>
 #include <list>
 #include <stdint.h>
+#include <dali/public-api/common/vector-wrapper.h>
+#include <dali/public-api/object/property-map.h>
 
 // INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
@@ -41,6 +43,26 @@ class Matrix3;
 class Matrix;
 class Quaternion;
 
+#if defined(DEBUG_ENABLED)
+
+// Less opaque types for debugger
+typedef std::vector<Dali::Property::Value> DebugPropertyValueArray;
+typedef std::pair< Property::Index, Property::Value > DebugIndexValuePair;
+typedef std::vector<Dali::StringValuePair> DebugStringValueContainer;
+typedef std::vector< DebugIndexValuePair > DebugIndexValueContainer;
+
+struct DebugPropertyValueMap
+{
+  DebugStringValueContainer stringValues;
+  DebugIndexValueContainer  intValues;
+};
+
+// Fake globals for gdb typedefs
+extern Dali::DebugPropertyValueArray gValueArray;
+extern Dali::DebugPropertyValueMap   gValueMap;
+
+#endif
+
 namespace Integration
 {
 namespace Log